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

Per #development comment by rdb earlier today
This commit is contained in:
Sam Edwards 2019-09-01 15:36:33 -06:00
parent 13a19109d4
commit d77ad6d0ed
2 changed files with 3 additions and 0 deletions

View File

@ -139,6 +139,7 @@ if(INTERROGATE_PYTHON_INTERFACE)
if(HAVE_VRPN) if(HAVE_VRPN)
add_python_module(panda3d.vrpn p3vrpn IMPORT panda3d.core COMPONENT VRPNPython) 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) export_targets(VRPNPython NAMESPACE "Panda3D::Python::" COMPONENT VRPNDevel)
endif() endif()

View File

@ -35,6 +35,8 @@ set_target_properties(p3vrpn PROPERTIES DEFINE_SYMBOL BUILDING_VRPN)
target_link_libraries(p3vrpn panda PKG::VRPN) target_link_libraries(p3vrpn panda PKG::VRPN)
target_interrogate(p3vrpn ALL) target_interrogate(p3vrpn ALL)
set_target_properties(p3vrpn PROPERTIES CXX_EXCEPTIONS ON)
install(TARGETS p3vrpn install(TARGETS p3vrpn
EXPORT VRPN COMPONENT VRPN EXPORT VRPN COMPONENT VRPN
DESTINATION ${CMAKE_INSTALL_LIBDIR} DESTINATION ${CMAKE_INSTALL_LIBDIR}