From 6b22825239ef8183b0969215371240e4abca3d67 Mon Sep 17 00:00:00 2001 From: Kamil Rakoczy Date: Tue, 18 Jun 2024 16:59:06 +0200 Subject: [PATCH] Fix path to FindFFTW.cmake when using KokkosFFT as subdirectory 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 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1060d505..6e8a66b7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -142,7 +142,7 @@ install( ) install( - FILES ${CMAKE_SOURCE_DIR}/cmake/FindFFTW.cmake + FILES ${CMAKE_CURRENT_SOURCE_DIR}/cmake/FindFFTW.cmake DESTINATION ${INSTALL_LIBDIR} ) @@ -161,4 +161,4 @@ install( FILES ${CMAKE_CURRENT_BINARY_DIR}/KokkosFFTConfig.cmake ${CMAKE_CURRENT_BINARY_DIR}/KokkosFFTConfigVersion.cmake DESTINATION ${INSTALL_LIBDIR} -) \ No newline at end of file +)