Skip to content

Commit

Permalink
fix: set _PackageProject_SET
Browse files Browse the repository at this point in the history
  • Loading branch information
FeignClaims committed Jan 6, 2025
1 parent e227969 commit fcccf1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/PackageProject.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ function(package_project)
set(_PackageProject_NAMESPACE "${_PackageProject_NAME}::")
set(_PackageProject_VARS_PREFIX ${_PackageProject_NAME})
set(_PackageProject_EXPORT ${_PackageProject_NAME})
set(_PackageProject_SET "${_PackageProject}_deps_set")

# default version to the project version
if("${_PackageProject_VERSION}" STREQUAL "")
Expand Down Expand Up @@ -249,6 +250,7 @@ function(package_project)
install(
TARGETS ${_targets_list}
EXPORT ${_PackageProject_EXPORT}
RUNTIME_DEPENDENCY_SET ${_PackageProject_SET}
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" COMPONENT shlib
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}" COMPONENT lib
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT bin
Expand Down

0 comments on commit fcccf1d

Please sign in to comment.