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 7278fad
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/package_config_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ project(CLI11-package-config-test)

include(CTest)

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

find_package(PkgConfig)

if(CLI11_DIR)
set(CMAKE_PREFIX_PATH ${CLI11_DIR})
endif()

pkg_check_modules(CLI11 REQUIRED IMPORTED_TARGET cli11)

# Test the target
Expand Down

0 comments on commit 7278fad

Please sign in to comment.