forked from lijiext/lammps
enable exceptions by default when testing is enabled, so we can test for failures
This commit is contained in:
parent
c3fe0e77c2
commit
8929ba42cd
|
@ -193,7 +193,7 @@ if(NOT ${LAMMPS_MEMALIGN} STREQUAL "0")
|
|||
target_compile_definitions(lammps PRIVATE -DLAMMPS_MEMALIGN=${LAMMPS_MEMALIGN})
|
||||
endif()
|
||||
|
||||
option(LAMMPS_EXCEPTIONS "enable the use of C++ exceptions for error messages (useful for library interface)" OFF)
|
||||
option(LAMMPS_EXCEPTIONS "enable the use of C++ exceptions for error messages (useful for library interface)" ${ENABLE_TESTING})
|
||||
if(LAMMPS_EXCEPTIONS)
|
||||
target_compile_definitions(lammps PUBLIC -DLAMMPS_EXCEPTIONS)
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue