Skip to content

Commit

Permalink
Install args of find_package correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
FeignClaims committed Apr 29, 2024
1 parent be90a2f commit 29770b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/PackageProject.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,8 @@ function(target_find_dependencies target)
find_package(${package_name} REQUIRED ${find_package_args})
endif()

set_property(TARGET ${target} APPEND PROPERTY "PROJECT_OPTIONS_${type}_DEPENDENCIES" "${package_name}")
list(JOIN find_package_args " " installation_args)
set_property(TARGET ${target} APPEND PROPERTY "PROJECT_OPTIONS_${type}_DEPENDENCIES" "${package_name} ${installation_args}")
endif()
endmacro()

Expand Down

0 comments on commit 29770b7

Please sign in to comment.