diff --git a/CMakeLists.txt b/CMakeLists.txt index 33a3f6c5c..9d363aec0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1767,7 +1767,7 @@ install(EXPORT SDL2Targets ) install( FILES - ${CMAKE_SOURCE_DIR}/SDL2Config.cmake + ${CMAKE_CURRENT_SOURCE_DIR}/SDL2Config.cmake ${CMAKE_BINARY_DIR}/SDL2ConfigVersion.cmake DESTINATION ${PKG_PREFIX} COMPONENT Devel