diff options
author | Brad King <brad.king@kitware.com> | 2021-03-10 15:04:05 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-03-10 15:04:05 (GMT) |
commit | 00ecddd9ebcbfc0cc4c2bd4e49ae56db59b465ea (patch) | |
tree | 7950373b3f7b9b4db8867ed6df981c5227b013d9 /Tests | |
parent | b6cc9be00900dec8f7a99b85c1a4cf86b1aebdb2 (diff) | |
download | CMake-00ecddd9ebcbfc0cc4c2bd4e49ae56db59b465ea.zip CMake-00ecddd9ebcbfc0cc4c2bd4e49ae56db59b465ea.tar.gz CMake-00ecddd9ebcbfc0cc4c2bd4e49ae56db59b465ea.tar.bz2 |
Tests: Enable Framework test case with spaces everywhere possible
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CMakeLists.txt | 1 | ||||
-rw-r--r-- | Tests/Framework/CMakeLists.txt | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index 3a05317..0430afb 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -804,6 +804,7 @@ if(BUILD_TESTING) ${build_generator_args} --build-project Framework --build-options + -DMAKE_SUPPORTS_SPACES=${MAKE_SUPPORTS_SPACES} "-DCMAKE_INSTALL_PREFIX:PATH=${CMake_BINARY_DIR}/Tests/Framework/Install" --test-command bar) list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/Framework") diff --git a/Tests/Framework/CMakeLists.txt b/Tests/Framework/CMakeLists.txt index aabf6b4..6e82f86 100644 --- a/Tests/Framework/CMakeLists.txt +++ b/Tests/Framework/CMakeLists.txt @@ -83,7 +83,7 @@ if(NOT XCODE OR NOT XCODE_VERSION VERSION_LESS 5) target_link_libraries(barStatic fooStatic) endif() -if(XCODE) +if(MAKE_SUPPORTS_SPACES AND NOT CMAKE_GENERATOR STREQUAL "Watcom WMake") add_library(space SHARED space.c) set_target_properties(space PROPERTIES FRAMEWORK TRUE |