diff options
author | Sven Gothel <[email protected]> | 2021-01-03 20:13:12 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-01-03 20:13:12 +0100 |
commit | 3fc6f7e5b8c8f4fd39e8d17c0edf80bff5a3f77a (patch) | |
tree | ea2c4dc3862b5673173311db2202300ebceb03d4 /test/CMakeLists.txt | |
parent | a42ab07161df356332a58ed74920af7a512fa19a (diff) |
text/CMakeLists.txt: Skip Catch2 settings for non GNUCC
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r-- | test/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 7bd76e5..ca3cdcb 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -8,7 +8,9 @@ set (catch2_LIB_SRCS add_library (catch2 STATIC ${catch2_LIB_SRCS}) +if(CMAKE_COMPILER_IS_GNUCC) target_compile_options(catch2 PUBLIC "-Wno-error=format-overflow") +endif(CMAKE_COMPILER_IS_GNUCC) # install(TARGETS catch2 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) |