Skip to content

Commit

Permalink
add debug output to cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
phlptp committed Aug 15, 2023
1 parent 796c283 commit 89a9232
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/package_config_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ include(CTest)
find_package(PkgConfig)

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

pkg_check_modules(CLI11 REQUIRED IMPORTED_TARGET CLI11)
message(STATUS "${CLI11_DIR}-- ${CMAKE_PREFIX_PATH}")
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 89a9232

Please sign in to comment.