Skip to content

Commit

Permalink
package-config: Fix ADD_PROJECT_PRIVATE_DEPENDENCY
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisv committed Jul 16, 2024
1 parent 69089c5 commit a464a75
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package-config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,10 @@ endmacro()
# Packages not in the PROJECT_PACKAGES_IN_WORKSPACE are searched with
# find_package.
macro(ADD_PROJECT_PRIVATE_DEPENDENCY)
list(GET ${ARGN} 0 _package_name)
set(ALL_ARGUMENTS ${ARGN})
list(GET ALL_ARGUMENTS 0 _package_name)
if(NOT ${_package_name} IN_LIST PROJECT_PACKAGES_IN_WORKSPACE)
find_package(${ARGN})
find_package(${ALL_ARGUMENTS})
endif()
endmacro()

Expand Down

0 comments on commit a464a75

Please sign in to comment.