Skip to content
Snippets Groups Projects
Commit f7bedd51 authored by Lars Bilke's avatar Lars Bilke Committed by Dmitri Naumov
Browse files

[cmake] Removed options OGS_LIB_[lib]=[System,...].

parent 624d3899
No related branches found
No related tags found
No related merge requests found
...@@ -50,14 +50,6 @@ if(NOT WIN32 AND OGS_BUILD_SWMM) ...@@ -50,14 +50,6 @@ if(NOT WIN32 AND OGS_BUILD_SWMM)
message(FATAL_ERROR "OGS_BUILD_SWMM requires Windows!") message(FATAL_ERROR "OGS_BUILD_SWMM requires Windows!")
endif() endif()
# Third-party libraries, names come from Conan package names
foreach(lib vtk qt petsc tfel)
set(OGS_LIB_${lib} "Default" CACHE STRING
"Which ${LIB} library should be used?"
)
set_property(CACHE OGS_LIB_${lib} PROPERTY STRINGS "Default" "System")
endforeach()
if(OGS_USE_PETSC) if(OGS_USE_PETSC)
set(OGS_USE_MPI ON CACHE BOOL "Use MPI" FORCE) set(OGS_USE_MPI ON CACHE BOOL "Use MPI" FORCE)
endif() endif()
......
...@@ -81,14 +81,6 @@ endif() ...@@ -81,14 +81,6 @@ endif()
conan_check(VERSION ${ogs.minimum_version.conan}) conan_check(VERSION ${ogs.minimum_version.conan})
conan_config_install(ITEM ${PROJECT_SOURCE_DIR}/scripts/cmake/conan/config) conan_config_install(ITEM ${PROJECT_SOURCE_DIR}/scripts/cmake/conan/config)
message(STATUS "Third-party libraries:")
foreach(LIB ${OGS_LIBS})
message(STATUS " - OGS_LIB_${LIB} = ${OGS_LIB_${LIB}}")
if("${OGS_LIB_${LIB}}" STREQUAL System)
list(FILTER CONAN_REQUIRES EXCLUDE REGEX ${LIB})
endif()
endforeach()
set(CONAN_IMPORTS "") set(CONAN_IMPORTS "")
if(APPLE) if(APPLE)
set(CONAN_IMPORTS ${CONAN_IMPORTS} "lib, *.dylib* -> ./lib") set(CONAN_IMPORTS ${CONAN_IMPORTS} "lib, *.dylib* -> ./lib")
......
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