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

[CMake] Moved definition OGS_USE_EIGEN.

parent 402258b5
No related branches found
No related tags found
No related merge requests found
...@@ -195,27 +195,27 @@ if(OGS_USE_MKL) ...@@ -195,27 +195,27 @@ if(OGS_USE_MKL)
endif() endif()
# Eigen # Eigen
if(CMAKE_BUILD_TYPE STREQUAL "Debug") if(OGS_USE_EIGEN)
add_definitions(-DEIGEN_INITIALIZE_MATRICES_BY_NAN) if(CMAKE_BUILD_TYPE STREQUAL "Debug")
endif() add_definitions(-DEIGEN_INITIALIZE_MATRICES_BY_NAN)
endif()
if(EIGEN_NO_DEBUG) if(EIGEN_NO_DEBUG)
add_definitions(-DEIGEN_NO_DEBUG) add_definitions(-DEIGEN_NO_DEBUG)
endif() endif()
if(EIGEN_DONT_VECTORIZE) if(EIGEN_DONT_VECTORIZE)
add_definitions(-DEIGEN_DONT_VECTORIZE) add_definitions(-DEIGEN_DONT_VECTORIZE)
endif() endif()
if(OGS_EIGEN_DYNAMIC_SHAPE_MATRICES_INTERNAL) if(OGS_EIGEN_DYNAMIC_SHAPE_MATRICES_INTERNAL)
add_definitions(-DOGS_EIGEN_DYNAMIC_SHAPE_MATRICES) add_definitions(-DOGS_EIGEN_DYNAMIC_SHAPE_MATRICES)
endif() endif()
if(OGS_USE_EIGEN)
add_definitions(-DOGS_USE_EIGEN)
if(OGS_USE_EIGEN_UNSUPPORTED) if(OGS_USE_EIGEN_UNSUPPORTED)
add_definitions(-DUSE_EIGEN_UNSUPPORTED) add_definitions(-DUSE_EIGEN_UNSUPPORTED)
endif() endif()
if(OGS_EIGEN_INITIALIZE_MATRICES_BY_NAN) if(OGS_EIGEN_INITIALIZE_MATRICES_BY_NAN)
add_definitions(-DEIGEN_INITIALIZE_MATRICES_BY_NAN) add_definitions(-DEIGEN_INITIALIZE_MATRICES_BY_NAN)
endif() endif()
......
...@@ -44,6 +44,9 @@ endif() ...@@ -44,6 +44,9 @@ endif()
if(OGS_USE_PETSC) if(OGS_USE_PETSC)
target_compile_definitions(MathLib PUBLIC USE_PETSC) target_compile_definitions(MathLib PUBLIC USE_PETSC)
endif() endif()
if(OGS_USE_EIGEN)
target_compile_definitions(MathLib PUBLIC OGS_USE_EIGEN)
endif()
target_link_libraries(MathLib target_link_libraries(MathLib
PUBLIC PUBLIC
......
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