Skip to content

Commit

Permalink
update the package_config_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
phlptp committed Aug 15, 2023
1 parent f9a2158 commit 9400110
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/package_config_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ project(CLI11-package-config-test)

include(CTest)

# Test the CLI11 CMake package config
find_package(CLI11 2.0 REQUIRED)

find_package(PkgConfig)

pkg_check_modules(CLI11 REQUIRED IMPORTED_TARGET cli11)
if(CLI11_DIR)
set(CMAKE_PREFIX_PATH ${CLI11_DIR})
endif()

pkg_check_modules(CLI11 REQUIRED IMPORTED_TARGET CLI11)

# Test the target
add_executable(package-config-test ../../examples/positional_validation.cpp)
Expand Down

0 comments on commit 9400110

Please sign in to comment.