Skip to content

Commit

Permalink
Fixes #562: Now using a streamlined, non-preprocessed package config …
Browse files Browse the repository at this point in the history
…file
  • Loading branch information
Eyal Rozenberg committed Dec 27, 2023
1 parent a878633 commit 54f5385
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
5 changes: 1 addition & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,7 @@ endif()
# Installing the libraries
# ------------------------

configure_file("${PROJECT_SOURCE_DIR}/cmake/cuda-api-wrappers-config.cmake.in"
"${PROJECT_BINARY_DIR}/cuda-api-wrappers-config.cmake" @ONLY)

install(FILES "${PROJECT_BINARY_DIR}/cuda-api-wrappers-config.cmake"
install(FILES "${PROJECT_SOURCE_DIR}/cmake/cuda-api-wrappers-config.cmake"
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/cuda-api-wrappers")

install(
Expand Down
7 changes: 7 additions & 0 deletions cmake/cuda-api-wrappers-config.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
include(CMakeFindDependencyMacro)

set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
find_dependency(Threads)
find_dependency(CUDAToolkit)

include("${CURRENT_LIST_DIR}/cuda-api-wrappers-targets.cmake")
10 changes: 0 additions & 10 deletions cmake/cuda-api-wrappers-config.cmake.in

This file was deleted.

0 comments on commit 54f5385

Please sign in to comment.