mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
System : Do not autoinstall vcpkg packages by default (#6876)
* System : Do not autoinstall vcpkg packages by default * System : Enable autoinstall of vcpkg for github action
This commit is contained in:
parent
fe1bdf365e
commit
15b5aef308
4
.github/workflows/ResInsightWithCache.yml
vendored
4
.github/workflows/ResInsightWithCache.yml
vendored
@ -123,7 +123,7 @@ jobs:
|
||||
with:
|
||||
path: ${{ github.workspace }}/ThirdParty/vcpkg/
|
||||
# Ensure the cache is invalidated any time vcpkg version changes, or a different set of packages is being used.
|
||||
key: ${{ hashFiles('.git/modules/ThirdParty/vcpkg/HEAD') }}-${{ runner.os }}-vcpkg-v03
|
||||
key: ${{ hashFiles('.git/modules/ThirdParty/vcpkg/HEAD') }}-${{ runner.os }}-vcpkg-v04
|
||||
- name: Get Python executable path
|
||||
id: python-path
|
||||
run: echo "::set-output name=PYTHON_EXECUTABLE::$(python -c 'import sys; import pathlib; print (pathlib.PurePath(sys.executable).as_posix())')"
|
||||
@ -171,7 +171,7 @@ jobs:
|
||||
-D RESINSIGHT_ENABLE_GRPC=true
|
||||
-D RESINSIGHT_GRPC_PYTHON_EXECUTABLE=${{ steps.python-path.outputs.PYTHON_EXECUTABLE }}
|
||||
-D RESINSIGHT_GRPC_DOWNLOAD_PYTHON_MODULE=true
|
||||
-D VCPKG_TARGET_TRIPLET=${{ matrix.config.vcpkg-triplet }}
|
||||
-D VCPKG_AUTO_INSTALL=true
|
||||
-D CMAKE_TOOLCHAIN_FILE=${{ matrix.config.cmake-toolchain }}
|
||||
-G Ninja
|
||||
RESULT_VARIABLE result
|
||||
|
@ -21,7 +21,7 @@ SET(BUILD_SHARED_LIBS OFF CACHE BOOL "ERT: Build shared libraries")
|
||||
|
||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
|
||||
|
||||
option(VCPKG_AUTO_INSTALL "Automatically download build pre-requisites with VCPKG" ON)
|
||||
option(VCPKG_AUTO_INSTALL "Automatically download build pre-requisites with VCPKG" OFF)
|
||||
if (VCPKG_AUTO_INSTALL)
|
||||
include (AutoVcpkg)
|
||||
set (AUTO_VCPKG_ROOT "${CMAKE_SOURCE_DIR}/ThirdParty/vcpkg")
|
||||
|
Loading…
Reference in New Issue
Block a user