mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00

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
10 lines
337 B
CMake
10 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}")
|
|
|