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

[cm] Removed global lis and mkl includes.

parent a5dbf0f3
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,10 @@ target_link_libraries(
$<$<BOOL:${OGS_USE_PYTHON}>:pybind11::pybind11>
)
if(OGS_USE_LIS)
target_include_directories(ApplicationsLib PUBLIC ${LIS_INCLUDE_DIR})
endif()
target_compile_definitions(
ApplicationsLib PUBLIC $<$<BOOL:${USE_LIS}>:USE_LIS>
$<$<BOOL:${OGS_USE_PETSC}>:USE_PETSC>
......
......@@ -187,13 +187,6 @@ option(OGS_USE_MFRONT
OFF
)
# ---- Definitions ----
if(OGS_USE_LIS)
include_directories(SYSTEM ${LIS_INCLUDE_DIR})
endif()
if(OGS_USE_MKL)
include_directories(SYSTEM ${MKL_INCLUDE_DIR})
endif()
# Eigen
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
......
......@@ -43,7 +43,11 @@ target_link_libraries(
if(OGS_USE_PETSC)
target_link_libraries(MathLib PUBLIC ${PETSC_LIBRARIES})
endif()
if(OGS_USE_LIS)
target_include_directories(MathLib PUBLIC ${LIS_INCLUDE_DIR})
endif()
if(OGS_USE_MKL)
target_include_directories(MathLib PRIVATE ${MKL_INCLUDE_DIR})
target_link_libraries(MathLib PUBLIC ${MKL_LIBRARIES})
endif()
......
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