File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -493,6 +493,12 @@ foreach(target ${test_targets})
493493 endif ()
494494endforeach ()
495495
496+ if (MSVC )
497+ target_compile_options ("exo_planet_c_api" PRIVATE /EHs-c-)
498+ elseif (CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Intel|Clang)" )
499+ target_compile_options ("exo_planet_c_api" PRIVATE -fno-exceptions)
500+ endif ()
501+
496502# Provide nice organisation in IDEs
497503source_group (
498504 TREE "${CMAKE_CURRENT_SOURCE_DIR} /../include"
Original file line number Diff line number Diff line change 11// Copyright (c) 2024 The pybind Community.
22
3+ #ifdef __EXCEPTIONS
4+ # error This test is meant to be built with C++ Exception Handling disabled.
5+ // In production situations it is totally fine to build with
6+ // C++ Exception Handling enabled. Here we just want to ensure that
7+ // C++ Exception Handling is not required.
8+ #endif
9+
310// THIS MUST STAY AT THE TOP!
411#include < pybind11/compat/pybind11_conduit_v1.h> // VERY light-weight dependency.
512
You can’t perform that action at this time.
0 commit comments