diff options
author | Chad Elliott <elliottc@objectcomputing.com> | 2022-11-04 13:30:30 -0500 |
---|---|---|
committer | Chad Elliott <elliottc@objectcomputing.com> | 2022-11-04 13:30:30 -0500 |
commit | 4bb959fc727b6c0e723d44ea173b94570a6eda65 (patch) | |
tree | c8c7c3794b5991ebe03f6d3dff73938e8111e1c4 /modules | |
parent | 666140816e64665b1f878f7dfdd125088913f34b (diff) | |
download | MPC-4bb959fc727b6c0e723d44ea173b94570a6eda65.tar.gz |
Fixed the translation of "." when used within libpaths.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/CMakeProjectCreator.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/CMakeProjectCreator.pm b/modules/CMakeProjectCreator.pm index 7ac73640..2114ab8a 100644 --- a/modules/CMakeProjectCreator.pm +++ b/modules/CMakeProjectCreator.pm @@ -94,8 +94,8 @@ sub fill_value { return 'CXX' if ($self->get_language() eq Creator::cplusplus()); } elsif ($name =~ /^env_(\w+)/) { - my $dotdir = ($1 eq 'libpaths' ? '${CMAKE_CURRENT_BIN_DIR}' : - '${CMAKE_CURRENT_SOURCE_DIR}'); + my $dotdir = '${CMAKE_CURRENT_SOURCE_DIR}' . + ($1 eq 'libpaths' ? ' ${CMAKE_CURRENT_BINARY_DIR}' : ''); my $paths = $self->get_assignment($1); if (defined $paths) { $paths = $self->create_array($paths); |