Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2019-12-22 16:17:26 +0300
committerbubnikv <bubnikv@gmail.com>2019-12-22 16:17:26 +0300
commit4473254779e7e2722ef5d5bba842cf4510169a03 (patch)
tree31634a459749a8100d8c28378cba79f962527810
parente2fd540815cde2a88c34e3fd57630e38a93b8c35 (diff)
Trying to fix unit tests when targeting OSX 10.9.
-rw-r--r--tests/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 458d39860..aab540126 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -8,6 +8,11 @@ add_library(Catch2 INTERFACE)
list (APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/modules/Catch2)
target_include_directories(Catch2 INTERFACE ${CMAKE_CURRENT_LIST_DIR})
add_library(Catch2::Catch2 ALIAS Catch2)
+if (APPLE)
+ # OSX builds targeting OSX 10.9 do not support new std::uncought_exception()
+ # see https://github.com/catchorg/Catch2/issues/1218
+ target_compile_definitions(Catch2 PUBLIC -DCATCH_CONFIG_NO_CPP17_UNCAUGHT_EXCEPTIONS)
+endif()
include(Catch)
set(CATCH_EXTRA_ARGS "" CACHE STRING "Extra arguments for catch2 test suites.")