diff options
author | Chad Elliott <elliottc@objectcomputing.com> | 2022-11-23 08:54:49 -0600 |
---|---|---|
committer | Chad Elliott <elliottc@objectcomputing.com> | 2022-11-23 08:54:49 -0600 |
commit | 26e3b92f9ed15c69f17baca125444b886b874055 (patch) | |
tree | 5f67f61f50f045f374f8e0ab4067888da95b92af | |
parent | a14caf1af8bce5e7a3fb4fedc412853e5ad88fcb (diff) | |
download | MPC-26e3b92f9ed15c69f17baca125444b886b874055.tar.gz |
Switch from converting $() vars to non-environment variables. Allow the user to set the variable at the CMake level, instead of in the environment.
-rw-r--r-- | modules/CMakeProjectCreator.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/CMakeProjectCreator.pm b/modules/CMakeProjectCreator.pm index 2114ab8a..e1896dc4 100644 --- a/modules/CMakeProjectCreator.pm +++ b/modules/CMakeProjectCreator.pm @@ -104,7 +104,7 @@ sub fill_value { $path = $dotdir; } else { - $path =~ s/\$\(([^\)]+)\)/\$ENV{$1}/g; + $path =~ s/\$\(([^\)]+)\)/\${$1}/g; } } return "@$paths"; |