From d77ad6d0edd8b7884a66f7d548aa485c5f28cb41 Mon Sep 17 00:00:00 2001 From: Sam Edwards Date: Sun, 1 Sep 2019 15:36:33 -0600 Subject: [PATCH] CMake: vrpn (and its igate module) require -fexceptions Per #development comment by rdb earlier today --- panda/CMakeLists.txt | 1 + panda/src/vrpn/CMakeLists.txt | 2 ++ 2 files changed, 3 insertions(+) diff --git a/panda/CMakeLists.txt b/panda/CMakeLists.txt index 0d32c9e7a1..a5b213a768 100644 --- a/panda/CMakeLists.txt +++ b/panda/CMakeLists.txt @@ -139,6 +139,7 @@ if(INTERROGATE_PYTHON_INTERFACE) if(HAVE_VRPN) add_python_module(panda3d.vrpn p3vrpn IMPORT panda3d.core COMPONENT VRPNPython) + set_target_properties(panda3d.vrpn PROPERTIES CXX_EXCEPTIONS ON) export_targets(VRPNPython NAMESPACE "Panda3D::Python::" COMPONENT VRPNDevel) endif() diff --git a/panda/src/vrpn/CMakeLists.txt b/panda/src/vrpn/CMakeLists.txt index b3e6497dfe..11e5a5fc61 100644 --- a/panda/src/vrpn/CMakeLists.txt +++ b/panda/src/vrpn/CMakeLists.txt @@ -35,6 +35,8 @@ set_target_properties(p3vrpn PROPERTIES DEFINE_SYMBOL BUILDING_VRPN) target_link_libraries(p3vrpn panda PKG::VRPN) target_interrogate(p3vrpn ALL) +set_target_properties(p3vrpn PROPERTIES CXX_EXCEPTIONS ON) + install(TARGETS p3vrpn EXPORT VRPN COMPONENT VRPN DESTINATION ${CMAKE_INSTALL_LIBDIR}