Skip to content

Commit

Permalink
CMake: Fix incorrect order of operations in config file template
Browse files Browse the repository at this point in the history
find_dependency turns out to change PACKAGE_PREFIX_DIR, so the hcana
CMake config was always broken since it tried to include
hcanaTargets.cmake from the Podd CMake directory.
  • Loading branch information
hansenjo authored and MarkKJones committed Aug 14, 2023
1 parent 2742ee6 commit 6bf09d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/hcanaConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ if(IS_DIRECTORY "@PACKAGE_INSTALL_CONFIGDIR@/Modules")
list(APPEND CMAKE_MODULE_PATH "@PACKAGE_INSTALL_CONFIGDIR@/Modules")
endif()

@FIND_DEPENDENCY_COMMANDS@

include("@PACKAGE_TARGETS_FILE@")

@FIND_DEPENDENCY_COMMANDS@

check_required_components(@PROJECT_NAME_UC@)

0 comments on commit 6bf09d6

Please sign in to comment.