diff options
author | Brad King <brad.king@kitware.com> | 2015-01-21 20:42:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-01-21 20:42:08 (GMT) |
commit | 7f4154a4aa4bb121bad05884f48466489e346821 (patch) | |
tree | 809114c8526d9679796909e688065ad947e618fe | |
parent | f40c19b5433aa601cd98fabd9491edc9aaf703b7 (diff) | |
download | CMake-7f4154a4aa4bb121bad05884f48466489e346821.zip CMake-7f4154a4aa4bb121bad05884f48466489e346821.tar.gz CMake-7f4154a4aa4bb121bad05884f48466489e346821.tar.bz2 |
Features: Fix CompileFeatures non-feature tests for space in path
Fix the <lang>_non_features try_compile calls to work correctly when
there is a space in the path. Otherwise they all fail due to the space
instead of the lack of a feature.
-rw-r--r-- | Tests/CompileFeatures/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/CompileFeatures/CMakeLists.txt b/Tests/CompileFeatures/CMakeLists.txt index ccd6f30..a276f36 100644 --- a/Tests/CompileFeatures/CMakeLists.txt +++ b/Tests/CompileFeatures/CMakeLists.txt @@ -92,8 +92,9 @@ foreach(lang CXX C) try_compile(${feature}_works "${CMAKE_CURRENT_BINARY_DIR}/${feature}_test" "${CMAKE_CURRENT_SOURCE_DIR}/feature_test.${${lang}_ext}" - COMPILE_DEFINITIONS "-DTEST=${CMAKE_CURRENT_SOURCE_DIR}/${feature}.${${lang}_ext}" + COMPILE_DEFINITIONS "-DTEST=${feature}.${${lang}_ext}" CMAKE_FLAGS "-DCMAKE_${lang}_STANDARD=${${lang}_standard_flag}" + "-DINCLUDE_DIRECTORIES=${CMAKE_CURRENT_SOURCE_DIR}" OUTPUT_VARIABLE OUTPUT ) if (${feature}_works) |