Skip to content

Commit

Permalink
Revert changes to cudawrappers-config.cmake.in
Browse files Browse the repository at this point in the history
  • Loading branch information
csbnw committed Jul 11, 2024
1 parent d4d5fd1 commit 253c327
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions cmake/cudawrappers-config.cmake.in
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
@PACKAGE_INIT@

# We cannot assume PACKAGE_PREFIX_DIR remains unchanged after a call to find_package, see
# https://github.com/Kitware/CMake/blob/140766867b2c8f8dff0e4d0d73e481b6944b5284/Modules/CMakePackageConfigHelpers.cmake#L79
# find_package is used in the cudawrappers-dependencies.cmake file, so we cannot use PACKAGE_PREFIX_DIR afterwards

set(CUDAWRAPPERS_PACKAGE_PREFIX_DIR ${PACKAGE_PREFIX_DIR})
include(${CUDAWRAPPERS_PACKAGE_PREFIX_DIR}/${CMAKE_INSTALL_LIBDIR}/cmake/@PROJECT_NAME@/cudawrappers-dependencies.cmake)
include(${CUDAWRAPPERS_PACKAGE_PREFIX_DIR}/${CMAKE_INSTALL_LIBDIR}/cmake/@PROJECT_NAME@/cudawrappers-exported.cmake)
include(${CUDAWRAPPERS_PACKAGE_PREFIX_DIR}/${CMAKE_INSTALL_LIBDIR}/cmake/@PROJECT_NAME@/cudawrappers-helper.cmake)
include(${PACKAGE_PREFIX_DIR}/${CMAKE_INSTALL_LIBDIR}/cmake/@PROJECT_NAME@/cudawrappers-dependencies.cmake)
include(${PACKAGE_PREFIX_DIR}/${CMAKE_INSTALL_LIBDIR}/cmake/@PROJECT_NAME@/cudawrappers-exported.cmake)
include(${PACKAGE_PREFIX_DIR}/${CMAKE_INSTALL_LIBDIR}/cmake/@PROJECT_NAME@/cudawrappers-helper.cmake)

0 comments on commit 253c327

Please sign in to comment.