diff --git a/CMakeLists.txt b/CMakeLists.txt index e376030e..66a77edc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,6 @@ # compatability is very likely. Also, the package's CMake binary will # not mistake any other local CMake-related files for its own. cmake_minimum_required(VERSION 3.25 FATAL_ERROR) -list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules") # ----------------------------------- # Project name, version & build type diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index f53e9850..d4b9cb84 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -1,3 +1,4 @@ +list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules") include(CheckIncludeFiles) option(CAW_WITH_COOPERATIVE_GROUPS "Enable cooperative-groups-related code in example programs" ON) diff --git a/cmake/Modules/CompileWithWarnings.cmake b/examples/cmake/Modules/CompileWithWarnings.cmake similarity index 100% rename from cmake/Modules/CompileWithWarnings.cmake rename to examples/cmake/Modules/CompileWithWarnings.cmake diff --git a/cmake/cuda-api-wrappers-config.cmake.in b/examples/cmake/cuda-api-wrappers-config.cmake.in similarity index 100% rename from cmake/cuda-api-wrappers-config.cmake.in rename to examples/cmake/cuda-api-wrappers-config.cmake.in