Skip to content
Snippets Groups Projects
Commit dd30b41f authored by Lars Bilke's avatar Lars Bilke
Browse files

Added CMake option OGS_CXX_FLAGS for user-given compiler flags.

Note that the flags are only appended, not substituted.
parent 0c9c11b8
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,9 @@ OPTION(OGS_NO_EXTERNAL_LIBS "Builds OGS without any external dependencies." OFF)
# Logging
OPTION(OGS_DISABLE_LOGGING "Disables all logog messages." OFF)
# Compiler flags
SET(OGS_CXX_FLAGS "" CACHE STRING "Additional C++ compiler flags.")
# Search paths
SET(OGS_LIBS_DIR "" CACHE PATH "The path to the compiled third party libs (mainly used for Windows).")
......
......@@ -22,7 +22,7 @@ TARGET_LINK_LIBRARIES(testrunner
BaseLib
GeoLib
${Boost_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
${CMAKE_THREAD_LIBS_INIT}
)
# Add make-target test which runs the testrunner
......
......@@ -15,6 +15,9 @@ ELSEIF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
SET(COMPILER_IS_MSVC TRUE)
ENDIF () # CMAKE_CXX_COMPILER_ID
# Set additional user-given compiler flags
SET(CMAKE_CXX_FLAGS ${OGS_CXX_FLAGS})
### GNU C/CXX compiler
IF(COMPILER_IS_GCC)
get_gcc_version(GCC_VERSION)
......
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