We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9a2158 commit 9400110Copy full SHA for 9400110
tests/package_config_tests/CMakeLists.txt
@@ -4,12 +4,13 @@ project(CLI11-package-config-test)
4
5
include(CTest)
6
7
-# Test the CLI11 CMake package config
8
-find_package(CLI11 2.0 REQUIRED)
9
-
10
find_package(PkgConfig)
11
12
-pkg_check_modules(CLI11 REQUIRED IMPORTED_TARGET cli11)
+if(CLI11_DIR)
+ set(CMAKE_PREFIX_PATH ${CLI11_DIR})
+endif()
+
13
+pkg_check_modules(CLI11 REQUIRED IMPORTED_TARGET CLI11)
14
15
# Test the target
16
add_executable(package-config-test ../../examples/positional_validation.cpp)
0 commit comments