diff options
author | Fred Baksik <frodak17@gmail.com> | 2019-01-09 04:52:12 (GMT) |
---|---|---|
committer | Fred Baksik <frodak17@gmail.com> | 2019-01-16 15:42:08 (GMT) |
commit | 21ab58d3f8782e80145f14eb6e72926c9d17afc6 (patch) | |
tree | 04b73d0d54cc854bedc8641aa5b7f73677362088 /Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/CMakeLists.txt | |
parent | 72e0c115b771fe9e3f4b5a5b6bd3bcdade77a7cb (diff) | |
download | CMake-21ab58d3f8782e80145f14eb6e72926c9d17afc6.zip CMake-21ab58d3f8782e80145f14eb6e72926c9d17afc6.tar.gz CMake-21ab58d3f8782e80145f14eb6e72926c9d17afc6.tar.bz2 |
GHS: Update test suite
-- Allow for testing default toolset settings
If CMake_TEST_GreenHillsMULTI_config is not defined then
just run the GHS tests using defaults.
-- Handle paths that contain spaces
-- Update test suite to use "-non_shared" linker option
Fixes linking issue if GHS is not shipped with shared libraries
-- Other minor cleanup
Diffstat (limited to 'Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/CMakeLists.txt')
-rw-r--r-- | Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/CMakeLists.txt b/Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/CMakeLists.txt index 520e65f..a1f152f 100644 --- a/Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/CMakeLists.txt +++ b/Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/CMakeLists.txt @@ -12,6 +12,6 @@ add_library(libdemo add_executable(demo main.c) target_link_libraries(demo libdemo) -if(GHSMULTI) - target_compile_options(demo PUBLIC "-non_shared") +if(CMAKE_C_COMPILER_ID STREQUAL "GHS") + target_link_options(demo PRIVATE "-non_shared") endif() |