Verified Commit fcdeb666 authored by Lars Bilke's avatar Lars Bilke

[CMake] Enforce conan supplied mfront.

Fixes #3034.
parent f75fdf23
Pipeline #1422 passed with stages
in 11 minutes and 48 seconds
......@@ -263,6 +263,12 @@ if(EXISTS ${PROJECT_SOURCE_DIR}/ThirdParty/vtkdiff/CMakeLists.txt AND BUILD_TEST
install(PROGRAMS $<TARGET_FILE:vtkdiff> DESTINATION bin COMPONENT ogs_extras)
endif()
# Correct tfel paths (they seem to be hard-coded to /usr/local/tfel/...)
if(OGS_USE_MFRONT AND OGS_USE_CONAN)
set(TFEL_INCLUDE_PATH "${CONAN_TFEL_ROOT}/include")
set(TFEL_LIBRARY_PATH "${CONAN_TFEL_ROOT}/lib")
endif()
include(scripts/cmake/CheckHeaderCompilation.cmake)
add_subdirectory(Applications)
......
......@@ -90,6 +90,9 @@ if(OGS_USE_MFRONT)
set(HAVE_PTHREADS TRUE)
add_definitions(-DHAVE_PTHREADS)
endif()
if(OGS_USE_CONAN)
set(TFEL_INSTALL_PATH ${CONAN_TFEL_ROOT} CACHE INTERNAL "")
endif()
endif()
# Do not search for libs if this option is set
......
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