summaryrefslogtreecommitdiffstats
path: root/Tests/GhsMulti/GhsMultiCompilerOptions
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/GhsMulti/GhsMultiCompilerOptions')
-rw-r--r--Tests/GhsMulti/GhsMultiCompilerOptions/CMakeLists.txt6
1 files changed, 2 insertions, 4 deletions
diff --git a/Tests/GhsMulti/GhsMultiCompilerOptions/CMakeLists.txt b/Tests/GhsMulti/GhsMultiCompilerOptions/CMakeLists.txt
index 1436cbb..4a3f5c2 100644
--- a/Tests/GhsMulti/GhsMultiCompilerOptions/CMakeLists.txt
+++ b/Tests/GhsMulti/GhsMultiCompilerOptions/CMakeLists.txt
@@ -14,14 +14,12 @@ file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/test.c
)
message("Building project")
+set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
try_compile(RESULT
${CMAKE_CURRENT_BINARY_DIR}/build
${CMAKE_CURRENT_BINARY_DIR}/src
test
- CMAKE_FLAGS -DGHS_BSP_NAME=${GHS_BSP_NAME}
- -DGHS_OS_ROOT=${GHS_OS_ROOT}
- -DGHS_TOOLSET_ROOT=${GHS_TOOLSET_ROOT}
- -DGHS_TARGET_PLATFORM=${GHS_TARGET_PLATFORM}
+ CMAKE_FLAGS
-DRUN_TEST=${RUN_TEST}
-DCMAKE_BUILD_TYPE=${RUN_TEST_BUILD_TYPE}
OUTPUT_VARIABLE OUTPUT)