Skip to content
Snippets Groups Projects
Commit 610d9313 authored by Norihiro Watanabe's avatar Norihiro Watanabe
Browse files

add cmake option OGS_FATAL_ABORT

parent 299b8cc3
No related branches found
No related tags found
No related merge requests found
...@@ -87,6 +87,9 @@ option(EIGEN_NO_DEBUG "Disables Eigen's assertions" OFF) ...@@ -87,6 +87,9 @@ option(EIGEN_NO_DEBUG "Disables Eigen's assertions" OFF)
# Logging # Logging
option(OGS_DISABLE_LOGGING "Disables all logog messages." OFF) option(OGS_DISABLE_LOGGING "Disables all logog messages." OFF)
# Debug
option(OGS_FATAL_ABORT "Abort in OGS_FATAL" OFF)
# Compiler flags # Compiler flags
set(OGS_CXX_FLAGS "" CACHE STRING "Additional C++ compiler flags.") set(OGS_CXX_FLAGS "" CACHE STRING "Additional C++ compiler flags.")
option(STL_NO_DEBUG "Disable STL debug in debug build" OFF) option(STL_NO_DEBUG "Disable STL debug in debug build" OFF)
...@@ -154,6 +157,10 @@ if(OGS_USE_EIGEN) ...@@ -154,6 +157,10 @@ if(OGS_USE_EIGEN)
add_definitions(-DOGS_USE_EIGEN) add_definitions(-DOGS_USE_EIGEN)
endif() endif()
if (OGS_FATAL_ABORT)
add_definitions(-DOGS_FATAL_ABORT)
endif()
if(OGS_BUILD_TESTS) if(OGS_BUILD_TESTS)
set(Data_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/Tests/Data CACHE INTERNAL "") set(Data_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/Tests/Data CACHE INTERNAL "")
set(Data_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/Tests/Data CACHE INTERNAL "") set(Data_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/Tests/Data CACHE INTERNAL "")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment