Skip to content
Snippets Groups Projects
Unverified Commit a8f5daa1 authored by Lars Bilke's avatar Lars Bilke Committed by GitHub
Browse files

Merge pull request #2577 from bilke/conan-release

Overwrite Conan build type
parents dc80cbc0 7ba4b2e2
No related branches found
No related tags found
No related merge requests found
......@@ -248,6 +248,7 @@ pipeline {
cmakeOptions =
"-DBUILD_SHARED_LIBS=${build_shared} " +
'-DOGS_CONAN_BUILD=outdated ' +
'-DOGS_CONAN_BUILD_TYPE=Release ' +
'-DOGS_CPU_ARCHITECTURE=generic '
config = 'Debug'
}
......
......@@ -27,7 +27,7 @@ include(${PROJECT_SOURCE_DIR}/scripts/cmake/conan/conan.cmake)
set(CONAN_REQUIRES
boost/1.66.0@conan/stable
eigen/3.3.4@conan/stable
vtk/8.2.0@bilke/testing
vtk/8.2.0@bilke/stable
CACHE INTERNAL ""
)
......@@ -127,6 +127,12 @@ else()
message(STATUS "Conan: Skipping update step.")
endif()
if(DEFINED OGS_CONAN_BUILD_TYPE)
set(CONAN_BUILD_TYPE ${OGS_CONAN_BUILD_TYPE})
else()
set(CONAN_BUILD_TYPE ${CMAKE_BUILD_TYPE})
endif()
if(MSVC)
set(CC_CACHE $ENV{CC})
set(CXX_CACHE $ENV{CXX})
......@@ -142,6 +148,7 @@ conan_cmake_run(
BUILD ${OGS_CONAN_BUILD}
IMPORTS ${CONAN_IMPORTS}
GENERATORS virtualrunenv
BUILD_TYPE ${CONAN_BUILD_TYPE}
)
if(MSVC)
set(ENV{CC} ${CC_CACHE}) # Restore vars
......
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