mirror of
https://github.com/reactos/reactos.git
synced 2024-10-22 05:46:19 +00:00
f2fd276358
When PreLoad.cmake is run, the CMAKE_CURRENT_SOURCE_DIR points to the directory, where the cmake command was executed (bug?). To get the root folder of reactos, use CMAKE_CURRENT_LIST_FILE, which points to PreLoad.cmake in the root folder. svn path=/branches/cmake-bringup/; revision=49405
11 lines
337 B
CMake
11 lines
337 B
CMake
|
|
# small trick to get the real source directory at this stage
|
|
STRING(REPLACE "/PreLoad.cmake" "" REACTOS_HOME_DIR ${CMAKE_CURRENT_LIST_FILE})
|
|
|
|
#message("/PreLoad.cmake ... ${REACTOS_HOME_DIR}")
|
|
|
|
SET(CMAKE_MODULE_PATH "${REACTOS_HOME_DIR}/cmake/Modules" CACHE INTERNAL "")
|
|
|
|
#message("CMAKE_MODULE_PATH = ${CMAKE_MODULE_PATH}")
|
|
|