diff options
author | Brad King <brad.king@kitware.com> | 2023-09-26 13:22:58 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-09-26 13:23:10 (GMT) |
commit | 0be496cb5a3bfd643d3c86c59e9ab320f3557cf9 (patch) | |
tree | b2e1b2b2b00c1a0f54b18372473c5ad6cb065919 /Tests/Complex/Library | |
parent | 187fb1911f6415362fc036d76fb4756317a52c2a (diff) | |
parent | f8fa4f1ad7b718cc3724f5015d3fd4374cff75d4 (diff) | |
download | CMake-0be496cb5a3bfd643d3c86c59e9ab320f3557cf9.zip CMake-0be496cb5a3bfd643d3c86c59e9ab320f3557cf9.tar.gz CMake-0be496cb5a3bfd643d3c86c59e9ab320f3557cf9.tar.bz2 |
Merge topic 'orangec-compiler'
f8fa4f1ad7 ci: Add OrangeC 6.73.1 nightly CI job
531b4fe643 OrangeC: Add support for OrangeC compiler
10f435a58f Tests: Simplify nested if conditions in Complex tests
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Acked-by: Victor <lostfreeman@gmail.com>
Merge-request: !8592
Diffstat (limited to 'Tests/Complex/Library')
-rw-r--r-- | Tests/Complex/Library/CMakeLists.txt | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/Tests/Complex/Library/CMakeLists.txt b/Tests/Complex/Library/CMakeLists.txt index df874ef..d216486 100644 --- a/Tests/Complex/Library/CMakeLists.txt +++ b/Tests/Complex/Library/CMakeLists.txt @@ -23,19 +23,9 @@ set(LibrarySources ${LibrarySources} remove(LibrarySources create_file.cxx GENERATED nonexisting_file) add_library(CMakeTestLibrary ${LibrarySources}) -if(WIN32) - if(NOT CYGWIN) - if(NOT BORLAND) - if(NOT MINGW) - target_link_libraries(CMakeTestLibrary - debug - user32.lib) - target_link_libraries(CMakeTestLibrary - optimized - kernel32.lib) - endif() - endif() - endif() +if(WIN32 AND NOT CYGWIN AND NOT BORLAND AND NOT MINGW AND NOT CMAKE_C_COMPILER_ID STREQUAL "OrangeC") + target_link_libraries(CMakeTestLibrary debug user32.lib) + target_link_libraries(CMakeTestLibrary optimized kernel32.lib) endif() # |