diff options
author | Chad Elliott <elliottc@objectcomputing.com> | 2022-11-09 06:48:51 -0600 |
---|---|---|
committer | Chad Elliott <elliottc@objectcomputing.com> | 2022-11-09 06:48:51 -0600 |
commit | 38aa62978ad2ec23a949ff9a204fb796fbb0e07d (patch) | |
tree | cd7beee22182d1a21d5bfd7eecb80648b8fe83a1 /modules | |
parent | a2195d28ad1db548c1c62a45a0718b8ca0e9b326 (diff) | |
download | MPC-38aa62978ad2ec23a949ff9a204fb796fbb0e07d.tar.gz |
Use the workspace name in the workspace CMakeLists.txt and repaced all add_compile_* calls with target_compile_*.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/CMakeWorkspaceCreator.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/CMakeWorkspaceCreator.pm b/modules/CMakeWorkspaceCreator.pm index 9cc0d0f4..6a9d994a 100644 --- a/modules/CMakeWorkspaceCreator.pm +++ b/modules/CMakeWorkspaceCreator.pm @@ -97,8 +97,9 @@ sub write_comps { ## Create the basis of a project so that we can add our add_subdirectory() ## calls below it. my $crlf = $self->crlf(); + my $ws = TemplateParser::actual_normalize(undef, $self->get_workspace_name()); print $fh "cmake_minimum_required(VERSION $version)", $crlf, - "project(workspace CXX)", $crlf; + "project($ws CXX)", $crlf; my $first = 1; foreach my $dir (@project_dirs) { |