Browse Source

CMake: vrpn (and its igate module) require -fexceptions

Per #development comment by rdb earlier today
Sam Edwards 6 years ago
parent
commit
d77ad6d0ed
2 changed files with 3 additions and 0 deletions
  1. 1 0
      panda/CMakeLists.txt
  2. 2 0
      panda/src/vrpn/CMakeLists.txt

+ 1 - 0
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()

+ 2 - 0
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}