build(cmake): use CMAKE_SOURCE_DIR property (#2091)

This commit is contained in:
ReenigneArcher
2024-02-03 15:29:09 -05:00
committed by GitHub
parent 2008bc0eaa
commit 328a300550
11 changed files with 165 additions and 166 deletions

View File

@@ -20,7 +20,7 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
endif()
# set the module path, used for includes
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
# set version info for this build
include(${CMAKE_MODULE_PATH}/prep/build_version.cmake)