Skip to content

Commit 25607cd

Browse files
fix: correct CMake include order
Move CMAKE_MODULE_PATH and macros.cmake include before other cmake includes to ensure add_sources macro is defined when needed by subdirectories
1 parent 322bfc9 commit 25607cd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎sage/libs/amms/implementations/CMakeLists.txt‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ message(STATUS "=== isage_amms Build Configuration ===")
88
message(STATUS "CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}")
99
message(STATUS "CMAKE_CXX_COMPILER: ${CMAKE_CXX_COMPILER}")
1010

11-
include (cmake/FindCuda.cmake)
12-
include (cmake/FindTorch.cmake)
13-
find_package(Torch REQUIRED)
1411
# Custom CMake find instructions and macros
1512
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake;${CMAKE_MODULE_PATH}")
1613
include(cmake/macros.cmake)
1714
include(cmake/default.cmake)
15+
include(cmake/FindCuda.cmake)
16+
include(cmake/FindTorch.cmake)
17+
find_package(Torch REQUIRED)
1818

1919

2020
# C++ Standard

0 commit comments

Comments
 (0)