mirror of
https://github.com/OPM/ResInsight.git
synced 2024-12-29 10:21:54 -06:00
GHA: Use precompiled opm-common
* GHA: Use precompiled opm-common * Fix cmake logic
This commit is contained in:
parent
342f191288
commit
c55d46c080
1
.github/workflows/ResInsightWithCache.yml
vendored
1
.github/workflows/ResInsightWithCache.yml
vendored
@ -199,6 +199,7 @@ jobs:
|
||||
-D RESINSIGHT_GRPC_PYTHON_EXECUTABLE=${{ steps.python-path.outputs.PYTHON_EXECUTABLE }}
|
||||
-D RESINSIGHT_GRPC_DOWNLOAD_PYTHON_MODULE=true
|
||||
-D RESINSIGHT_ENABLE_HDF5=false
|
||||
-D RESINSIGHT_BUILD_LIBS_FROM_SOURCE=false
|
||||
-D CMAKE_TOOLCHAIN_FILE=ThirdParty/vcpkg/scripts/buildsystems/vcpkg.cmake
|
||||
-G Ninja
|
||||
RESULT_VARIABLE result
|
||||
|
@ -436,13 +436,7 @@ add_subdirectory(ThirdParty/custom-opm-flowdiag-app)
|
||||
# Option used to build opm-common from source or use precompiled binaries
|
||||
option(RESINSIGHT_BUILD_LIBS_FROM_SOURCE "Build opm-common from source" ON)
|
||||
|
||||
if(RESINSIGHT_BUILD_LIBS_FROM_SOURCE)
|
||||
add_subdirectory(ThirdParty/custom-opm-common)
|
||||
add_subdirectory(ThirdParty/custom-opm-common/custom-opm-parser-tests)
|
||||
list(APPEND OPM_LIBRARIES custom-opm-common)
|
||||
set_property(TARGET opm-parser-tests PROPERTY FOLDER "Thirdparty/OPM")
|
||||
else()
|
||||
if(MSVC)
|
||||
if((NOT RESINSIGHT_BUILD_LIBS_FROM_SOURCE) AND MSVC)
|
||||
FetchContent_Declare(
|
||||
ri-dependencies
|
||||
URL https://github.com/CeetronSolutions/resinsight-dependencies/releases/download/2023.04/custom-opm-common.zip
|
||||
@ -451,7 +445,12 @@ else()
|
||||
list(APPEND EXTERNAL_LINK_LIBRARIES
|
||||
${ri-dependencies_SOURCE_DIR}/custom-opm-common.lib
|
||||
)
|
||||
endif()
|
||||
message(STATUS "opm-common: Enabled use of precompiled library")
|
||||
else()
|
||||
add_subdirectory(ThirdParty/custom-opm-common)
|
||||
add_subdirectory(ThirdParty/custom-opm-common/custom-opm-parser-tests)
|
||||
list(APPEND OPM_LIBRARIES custom-opm-common)
|
||||
set_property(TARGET opm-parser-tests PROPERTY FOLDER "Thirdparty/OPM")
|
||||
endif()
|
||||
|
||||
list(APPEND OPM_LIBRARIES custom-opm-flowdiagnostics custom-opm-flowdiag-app)
|
||||
|
Loading…
Reference in New Issue
Block a user