diff --git a/cth/CMakeLists.txt b/cth/CMakeLists.txt index fc35edf..cfa0e43 100644 --- a/cth/CMakeLists.txt +++ b/cth/CMakeLists.txt @@ -11,9 +11,7 @@ cth_pkg_target_include_directories( target_compile_options(cth INTERFACE $<$:/Zc:preprocessor>) -if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang" AND NOT CMAKE_CXX_SIMULATE_ID STREQUAL "MSVC") - target_link_libraries(cth INTERFACE stdc++exp) -endif() +target_link_libraries(cth INTERFACE $<$,$>>:stdc++exp>) # tests if(CTH_ENABLE_TESTS)