Skip to content

Commit

Permalink
perf: load custom module path (#139)
Browse files Browse the repository at this point in the history
Signed-off-by: l.feng <43399351+msclock@users.noreply.github.com>
  • Loading branch information
msclock authored Jan 5, 2025
1 parent a9f2c9a commit c425d44
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmake/ProjectDefault.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ elseif(EXISTS ${CMAKE_SOURCE_DIR}/ProjectOptions.cmake)
include(${CMAKE_SOURCE_DIR}/ProjectOptions.cmake)
endif()

# Add custom module path from the project
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/CMake)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake")
elseif(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
endif()

# Include general build and test settings for all projects
include(${CMAKE_CURRENT_LIST_DIR}/build/Sanitizer.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/test/Valgrind.cmake)
Expand Down

0 comments on commit c425d44

Please # to comment.