mirror of
https://github.com/reactos/CMake.git
synced 2025-02-25 22:45:40 +00:00
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.
This commit is contained in:
parent
f40c19b543
commit
7f4154a4aa
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user