Commit 2534fb4e authored by Lars Bilke's avatar Lars Bilke

[CMake] Moved definition USE_INSITU.

parent 647fc12b
......@@ -50,6 +50,9 @@ add_executable(ogs ogs.cpp)
if(OGS_USE_PETSC)
target_compile_definitions(ogs PRIVATE USE_PETSC)
endif()
if(USE_INSITU)
target_compile_definitions(ogs PRIVATE USE_INSITU)
endif()
target_link_libraries(ogs
PRIVATE
ApplicationsLib
......
......@@ -228,10 +228,6 @@ include(scripts/cmake/packaging/Pack.cmake)
# ---- Subdirectories ----
# External projects
if(OGS_INSITU)
add_definitions(-DUSE_INSITU)
endif()
add_subdirectory(ThirdParty)
include_directories(
SYSTEM
......
......@@ -29,6 +29,9 @@ endif()
if(OGS_USE_XDMF)
target_compile_definitions(ProcessLib PUBLIC OGS_USE_XDMF)
endif()
if(USE_INSITU)
target_compile_definitions(ProcessLib PRIVATE USE_INSITU)
endif()
target_link_libraries(ProcessLib
PUBLIC
BaseLib
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment