Skip to content

Commit

Permalink
Fix path to FindFFTW.cmake when using KokkosFFT as subdirectory
Browse files Browse the repository at this point in the history
When KokkosFFT is used as a subdirectory, CMAKE_SOURCE_DIR points to top
level of the current CMake source tree. CMAKE_CURRENT_SOURCE_DIR points
to the source directory that is currently being processed by cmake.

Signed-off-by: Kamil Rakoczy <[email protected]>
  • Loading branch information
kamilrakoczy committed Jun 18, 2024
1 parent c7e13b0 commit 6b22825
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ install(
)

install(
FILES ${CMAKE_SOURCE_DIR}/cmake/FindFFTW.cmake
FILES ${CMAKE_CURRENT_SOURCE_DIR}/cmake/FindFFTW.cmake
DESTINATION ${INSTALL_LIBDIR}
)

Expand All @@ -161,4 +161,4 @@ install(
FILES ${CMAKE_CURRENT_BINARY_DIR}/KokkosFFTConfig.cmake
${CMAKE_CURRENT_BINARY_DIR}/KokkosFFTConfigVersion.cmake
DESTINATION ${INSTALL_LIBDIR}
)
)

0 comments on commit 6b22825

Please sign in to comment.