mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-05 21:24:27 +02:00
build: test_package CI build fixed
This commit is contained in:
3
.github/workflows/ci-test-package-cmake.yml
vendored
3
.github/workflows/ci-test-package-cmake.yml
vendored
@@ -89,7 +89,8 @@ jobs:
|
||||
- name: Configure test_package CMake
|
||||
run: |
|
||||
mkdir -p test_package/build/${{ matrix.build_type }} && cd test_package/build/${{ matrix.build_type }}
|
||||
cmake ../.. -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_INSTALL_PREFIX=../../../build/${{ matrix.build_type }}/test_package -DCMAKE_TOOLCHAIN_FILE=../../../build/${{ matrix.build_type }}/conan_toolchain.cmake
|
||||
conan install ../../.. -s compiler.cppstd=20 -s compiler.libcxx=libstdc++11 -s build_type=${{ matrix.build_type }}
|
||||
cmake ../.. -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_INSTALL_PREFIX=../../../build/${{ matrix.build_type }}/test_package -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake
|
||||
- name: Build test_package
|
||||
run: |
|
||||
cd test_package/build/${{ matrix.build_type }}
|
||||
|
@@ -23,9 +23,6 @@
|
||||
cmake_minimum_required(VERSION 3.15)
|
||||
project(test_package)
|
||||
|
||||
# enable package discovery based on the local configuration files
|
||||
list(PREPEND CMAKE_PREFIX_PATH ${CMAKE_BINARY_DIR})
|
||||
|
||||
find_package(mp-units CONFIG REQUIRED)
|
||||
|
||||
add_executable(test_package test_package.cpp)
|
||||
|
Reference in New Issue
Block a user