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

[cmake] Define USE_MKL on source scope only.

parent d5b1f1e8
No related branches found
No related tags found
No related merge requests found
......@@ -57,8 +57,13 @@ target_compile_definitions(
$<$<BOOL:${OGS_EIGEN_INITIALIZE_MATRICES_BY_NAN}>:EIGEN_INITIALIZE_MATRICES_BY_NAN>
$<$<CONFIG:Debug>:EIGEN_INITIALIZE_MATRICES_BY_NAN>
$<$<AND:$<BOOL:${OGS_USE_MKL}>,$<BOOL:${OGS_EIGEN_USE_MKL}>>:EIGEN_USE_MKL_ALL>
PRIVATE $<$<BOOL:${OGS_USE_MKL}>:USE_MKL>
)
if(OGS_USE_MKL)
set_source_files_properties(
LinAlg/Eigen/EigenLinearSolver.cpp PROPERTIES COMPILE_DEFINITIONS
USE_MKL
)
endif()
target_precompile_headers(
MathLib PRIVATE [["BaseLib/Error.h"]] [["BaseLib/ConfigTree.h"]]
......
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