diff --git a/CMakeLists.txt b/CMakeLists.txt index b25bc79c1d..ea536ff5f5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -70,7 +70,7 @@ elseif(APPLE) else()#Linux -ADD_DEFINITIONS(-DLINUX) +ADD_DEFINITIONS(-DLINUX -DCC_RESOURCE_FOLDER_LINUX="/") endif() diff --git a/templates/js-template-default/CMakeLists.txt b/templates/js-template-default/CMakeLists.txt index 841e7f1e0e..3ca02e9ec2 100644 --- a/templates/js-template-default/CMakeLists.txt +++ b/templates/js-template-default/CMakeLists.txt @@ -55,6 +55,8 @@ else(USE_CHIPMUNK) message(FATAL_ERROR "Must choose a physics library.") endif(USE_CHIPMUNK) +ADD_DEFINITIONS(-DCC_RESOURCE_FOLDER_LINUX="/") + # architecture if ( CMAKE_SIZEOF_VOID_P EQUAL 8 ) set(ARCH_DIR "64-bit")