Skip to content

Commit

Permalink
CI: Windows vcpkg build tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ohhmm committed Sep 28, 2024
1 parent dadd647 commit 4090bc5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/winvcpkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
vcpkgJsonGlob: '**/vcpkg.json'

- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -G Ninja -DCMAKE_TOOLCHAIN_FILE=${{github.workspace}}/vcpkg/scripts/buildsystems/vcpkg.cmake || cmake -B ${{github.workspace}}/build -G Ninja -DCMAKE_TOOLCHAIN_FILE=${{github.workspace}}/vcpkg/scripts/buildsystems/vcpkg.cmake -DOPENMIND_BUILD_TESTS=NO
run: cmake -B ${{github.workspace}}/build -G Ninja -DCMAKE_TOOLCHAIN_FILE=${{github.workspace}}/vcpkg/scripts/buildsystems/vcpkg.cmake || cmake -B ${{github.workspace}}/build -G Ninja -DCMAKE_TOOLCHAIN_FILE=${{github.workspace}}/vcpkg/scripts/buildsystems/vcpkg.cmake -DOPENMIND_BUILD_TESTS=ON

- name: Build
run: cmake --build ${{github.workspace}}/build
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,11 @@ set(_BOOST_USED_COMPONENTS
thread
CACHE STRING "Components" FORCE)
if(OPENMIND_USE_VCPKG)
# set(Boost_USE_STATIC_LIBS ON)
# set(Boost_USE_DEBUG_LIBS OFF)
# set(Boost_USE_RELEASE_LIBS ON)
# set(Boost_USE_MULTITHREADED ON)
# set(Boost_USE_STATIC_RUNTIME ON)
set(_BOOST_USED_COMPONENTS ${_BOOST_USED_COMPONENTS}
compute
multiprecision
Expand Down
2 changes: 1 addition & 1 deletion cmake/bins.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ function(test)
message("test_libs ${test_libs}")
set(libs ${test_libs} ${TEST_DEPS})#pthread
if(Boost_FOUND)
if(NOT MSVC OR OPENMIND_USE_CONAN)
if(NOT MSVC OR OPENMIND_USE_CONAN OR OPENMIND_USE_VCPKG)
set(libs ${libs} ${BOOST_TEST_LINK_LIBS})
endif()
endif()
Expand Down

0 comments on commit 4090bc5

Please sign in to comment.