Skip to content

Commit 6b5dba4

Browse files
committed
tweak the workflows
1 parent bf484d6 commit 6b5dba4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ jobs:
149149
#- name: Add pkgconfig
150150
# run: sudo apt-get update && sudo apt-get install -y pkgconfig
151151
- name: Configure
152-
run: cmake -S . -B build -DCLI11_INSTALL_PACKAGE_TESTS=ON
152+
run: cmake -S . -B build -DCLI11_INSTALL_PACKAGE_TESTS=ON -DCMAKE_INSTALL_PREFIX=/home/runner/work/install
153153
- name: Build
154154
run: cmake --build build -j2
155155
- name: install

tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ endif()
281281
if(CLI11_INSTALL_PACKAGE_TESTS)
282282
set(CLI11_PACKAGE_SEARCH_LOC)
283283
else()
284-
set(CLI11_PACKAGE_SEARCH_LOC "-DCLI11_DIR=${PROJECT_BINARY_DIR}")
284+
set(CLI11_PACKAGE_SEARCH_LOC "-DCLI11_DIR=${CMAKE_INSTALL_PREFIX}")
285285
endif()
286286

287287
# tests of the cmake package and pkg-config package

0 commit comments

Comments
 (0)