From 552080cb693424ef5eb6a28ae828a0564cc8266a Mon Sep 17 00:00:00 2001 From: Vladimir Timofeev Date: Wed, 22 Oct 2014 12:18:33 +0400 Subject: [PATCH] Fix modules include path to be relative project directory. This change allow to include cocos project directory from another CMakeFiles.txt (with add_subdirectory). And will allow anyone to connect cocos as submodule to their project easily. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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})