Add prefix to cmake options

Add missing RESINSIGHT_ prefix to cmake options
GHA: Fix warnings
This commit is contained in:
Magne Sjaastad 2023-05-19 15:03:04 +02:00 committed by GitHub
parent 95e3435384
commit f4dd1d363d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 18 additions and 18 deletions

View File

@ -14,7 +14,7 @@ jobs:
- name: Set apt mirror
# see https://github.com/actions/runner-images/issues/7048
if: "contains( matrix.os, 'ubuntu')"
if: ${{contains( matrix.os, 'ubuntu') }}
run: |
# make sure there is a `\t` between URL and `priority:*` attributes
printf 'http://azure.archive.ubuntu.com/ubuntu priority:1\n' | sudo tee /etc/apt/mirrors.txt
@ -22,7 +22,7 @@ jobs:
sudo sed -i 's/http:\/\/azure.archive.ubuntu.com\/ubuntu\//mirror+file:\/etc\/apt\/mirrors.txt/' /etc/apt/sources.list
- name: Install Linux dependencies
if: "contains( matrix.os, 'ubuntu')"
if: ${{contains( matrix.os, 'ubuntu') }}
run: |
sudo apt-get update --option="APT::Acquire::Retries=3"
sudo apt-get install --option="APT::Acquire::Retries=3" libxkbcommon-x11-0 libgl1-mesa-dev mesa-common-dev libglfw3-dev libglu1-mesa-dev

View File

@ -6,7 +6,7 @@ on:
schedule:
# Every day at 1am to make sure we have a build cache for the current date
# build cache is
- cron: "0 1 * * * "
- cron: '0 1 * * *'
env:
BUILD_TYPE: Release
BUILDCACHE_VERSION: 0.27.6
@ -137,7 +137,7 @@ jobs:
- name: Set apt mirror
# see https://github.com/actions/runner-images/issues/7048
if: "contains( matrix.config.os, 'ubuntu')"
if: ${{contains( matrix.config.os, 'ubuntu') }}
run: |
# make sure there is a `\t` between URL and `priority:*` attributes
printf 'http://azure.archive.ubuntu.com/ubuntu priority:1\n' | sudo tee /etc/apt/mirrors.txt
@ -145,7 +145,7 @@ jobs:
sudo sed -i 's/http:\/\/azure.archive.ubuntu.com\/ubuntu\//mirror+file:\/etc\/apt\/mirrors.txt/' /etc/apt/sources.list
- name: Install Linux dependencies
if: "contains( matrix.config.os, 'ubuntu')"
if: ${{contains( matrix.config.os, 'ubuntu') }}
run: |
sudo apt-get update --option="APT::Acquire::Retries=3"
sudo apt-get install --option="APT::Acquire::Retries=3" libxkbcommon-x11-0 libgl1-mesa-dev mesa-common-dev libglfw3-dev libglu1-mesa-dev libhdf5-dev
@ -168,14 +168,14 @@ jobs:
appendedCacheKey: ${{ matrix.config.os }}-${{ matrix.config.cxx }}-cache-key-v2
- name: Cache dynamic version of OpenSSL (Linux)
if: "contains( matrix.config.os, 'ubuntu_disabled')"
if: ${{contains( matrix.config.os, 'ubuntu_disabled') }}
uses: actions/cache@v3
with:
path: ${{ github.workspace }}/ThirdParty/vcpkg/installed/x64-linux-dynamic
key: ${{ matrix.config.os }}-vcpkg-x64-linux-dynamic_v05
- name: Install dynamic version of OpenSSL (Linux)
if: "contains( matrix.config.os, 'ubuntu')"
if: ${{contains( matrix.config.os, 'ubuntu') }}
run: |
$VCPKG_ROOT/vcpkg install --overlay-triplets=${{ github.workspace }}/ThirdParty/vcpkg-custom-triplets --triplet x64-linux-dynamic openssl
@ -222,13 +222,13 @@ jobs:
- name: Stats for buildcache
run: ${{ github.workspace }}/buildcache/bin/buildcache -s
- name: Run Unit Tests
if: "matrix.config.execute-unit-tests == true"
if: matrix.config.execute-unit-tests == 'true'
shell: bash
run: |
cmakebuild/ApplicationExeCode/ResInsight --unittest
- name: Run pytest
if: "matrix.config.build-python-module == true"
if: matrix.config.build-python-module == 'true'
env:
RESINSIGHT_EXECUTABLE: ${{ runner.workspace }}/ResInsight/cmakebuild/ApplicationExeCode/ResInsight
run: |

View File

@ -7,7 +7,7 @@ on:
workflow_dispatch:
schedule:
# Once every night
- cron: "0 1 * * * "
- cron: "0 1 * * *"
jobs:
ResInsight-x64-buildcache:
@ -33,7 +33,7 @@ jobs:
submodules: true
- name: Install Linux dependencies
if: "contains( matrix.config.os, 'ubuntu')"
if: ${{contains( matrix.config.os, 'ubuntu') }}
run: |
sudo apt-get update --option="APT::Acquire::Retries=3"
sudo apt-get install --option="APT::Acquire::Retries=3" libxkbcommon-x11-0 libgl1-mesa-dev mesa-common-dev libglfw3-dev libglu1-mesa-dev libhdf5-dev

View File

@ -74,7 +74,7 @@ endif()
# ##############################################################################
# Eigen
# ##############################################################################
if(VCPKG_AUTO_INSTALL)
if(RESINSIGHT_VCPKG_AUTO_INSTALL)
vcpkg_install(eigen3)
endif()

View File

@ -37,10 +37,10 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
option(RESINSIGHT_BUNDLE_TESTMODELS "Copy TestModels into the installation" OFF)
option(VCPKG_AUTO_INSTALL
option(RESINSIGHT_VCPKG_AUTO_INSTALL
"Automatically download build pre-requisites with VCPKG" OFF
)
if(VCPKG_AUTO_INSTALL)
if(RESINSIGHT_VCPKG_AUTO_INSTALL)
include(AutoVcpkg)
set(AUTO_VCPKG_ROOT "${CMAKE_SOURCE_DIR}/ThirdParty/vcpkg")
endif()
@ -321,8 +321,8 @@ set(CMAKE_CXX_COMPILER_LAUNCHER ${TEMP_CMAKE_CXX_COMPILER_LAUNCHER})
find_package(Git QUIET)
if(GIT_FOUND AND EXISTS "${PROJECT_SOURCE_DIR}/.git")
# Update submodules as needed
option(GIT_SUBMODULE "Check submodules during build" ON)
if(GIT_SUBMODULE)
option(RESINSIGHT_UPDATE_SUBMODULES "Check submodules during build" ON)
if(RESINSIGHT_UPDATE_SUBMODULES)
set(SUBDIR "${PROJECT_SOURCE_DIR}/ThirdParty")
message(STATUS "Initializing GIT submodules")
execute_process(
@ -424,7 +424,7 @@ endif() # MSVC
# Opm
# ##############################################################################
if(VCPKG_AUTO_INSTALL)
if(RESINSIGHT_VCPKG_AUTO_INSTALL)
vcpkg_install(boost-filesystem)
vcpkg_install(boost-spirit)
include(${CMAKE_TOOLCHAIN_FILE})

View File

@ -3,7 +3,7 @@ project(GrpcInterface)
message(STATUS "GRPC enabled")
add_definitions(-DENABLE_GRPC)
if(VCPKG_AUTO_INSTALL)
if(RESINSIGHT_VCPKG_AUTO_INSTALL)
vcpkg_install(grpc)
endif()