diff --git a/CMake/PackageDepends/MITK_Eigen_Config.cmake b/CMake/PackageDepends/MITK_Eigen_Config.cmake index 44e9afee23..dfd8299dd7 100644 --- a/CMake/PackageDepends/MITK_Eigen_Config.cmake +++ b/CMake/PackageDepends/MITK_Eigen_Config.cmake @@ -1 +1 @@ -list(APPEND ALL_INCLUDE_DIRECTORIES ${Eigen_DIR}) +list(APPEND ALL_INCLUDE_DIRECTORIES ${Eigen_DIR}/include/eigen3) diff --git a/CMakeExternals/Eigen.cmake b/CMakeExternals/Eigen.cmake index 8396dc0750..6f50d23e0f 100644 --- a/CMakeExternals/Eigen.cmake +++ b/CMakeExternals/Eigen.cmake @@ -1,31 +1,31 @@ #----------------------------------------------------------------------------- # Eigen #----------------------------------------------------------------------------- # Sanity checks if(DEFINED Eigen_DIR AND NOT EXISTS ${Eigen_DIR}) message(FATAL_ERROR "Eigen_DIR variable is defined but corresponds to non-existing directory") endif() set(proj Eigen) set(proj_DEPENDENCIES ) set(Eigen_DEPENDS ${proj}) if(NOT DEFINED Eigen_DIR) ExternalProject_Add(${proj} SOURCE_DIR ${CMAKE_BINARY_DIR}/${proj}-src BINARY_DIR ${proj}-cmake URL ${MITK_THIRDPARTY_DOWNLOAD_PREFIX_URL}/Eigen-3.2.2.tar.gz URL_MD5 2809c6a623ef48e7ab3d6a2630b94a29 CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_CURRENT_BINARY_DIR}/${proj}-install ) - set(Eigen_DIR ${CMAKE_CURRENT_BINARY_DIR}/${proj}-install/include/eigen3) + set(Eigen_DIR ${CMAKE_CURRENT_BINARY_DIR}/${proj}-install) else() mitkMacroEmptyExternalProject(${proj} "${proj_DEPENDENCIES}") endif()