diff --git a/CMakeLists.txt b/CMakeLists.txt index 8d15361df8..3607921ed2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,7 +34,7 @@ project (Cocos2d-X) # The version number set(COCOS2D_X_VERSION 3.3.0-rc1) -set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/") +set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake/Modules/") include(CocosBuildHelpers) message(${BUILDING_STRING})