Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake: improved udpcapConfig-XXX.cmake with find_dependency #6

Merged
merged 3 commits into from
Jan 24, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
CMake: improved fineftpConfig.cmake with find_dependency
- Replaced find_package with find_dependency call that is designed to be used in Package configuration files
- Replaced configured install-dir with a lookup in the CURRENT_LIST_DIR
  • Loading branch information
FlorianReimold authored Jan 24, 2023
commit 0ce64727d2d9df6ed21b7607759197ba12af9091
7 changes: 4 additions & 3 deletions udpcap/cmake/udpcapConfig-static.cmake.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@PACKAGE_INIT@

INCLUDE("@PACKAGE_UDPCAP_INSTALL_CMAKE_DIR@/udpcapTargets.cmake")
include(CMakeFindDependencyMacro)
find_dependency(npcap)
find_dependency(pcapplusplus)

find_package(npcap REQUIRED)
find_package(pcapplusplus REQUIRED)
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/udpcapTargets.cmake")