Skip to content

Commit

Permalink
CMake: improved fineftpConfig.cmake with find_dependency (#42)
Browse files Browse the repository at this point in the history
- 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
1 parent 66652d0 commit dc2d1a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions cmake/fineftpConfig.cmake.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@PACKAGE_INIT@

INCLUDE("@PACKAGE_FINEFTP_INSTALL_CMAKE_DIR@/fineftpTargets.cmake")
find_package(Threads)
include(CMakeFindDependencyMacro)
find_dependency(Threads)

INCLUDE("${CMAKE_CURRENT_LIST_DIR}/fineftpTargets.cmake")
2 changes: 1 addition & 1 deletion fineftp-server/version.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
set(FINEFTP_SERVER_VERSION_MAJOR 1)
set(FINEFTP_SERVER_VERSION_MINOR 3)
set(FINEFTP_SERVER_VERSION_PATCH 3)
set(FINEFTP_SERVER_VERSION_PATCH 4)

0 comments on commit dc2d1a6

Please sign in to comment.