mirror of https://github.com/axmolengine/axmol.git
CMake, use file TO_CMAKE_PATH instead string replace [ci build]
This commit is contained in:
parent
b8a3de050f
commit
db2e468e91
|
@ -36,9 +36,9 @@ if(NOT DEFINED BUILD_ENGINE_DONE) # to test HelloCpp into root project
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT (ENGINEX_ROOT STREQUAL ""))
|
if(NOT (ENGINEX_ROOT STREQUAL ""))
|
||||||
message(STATUS "Using system env var ENGINEX_ROOT=${ENGINEX_ROOT}")
|
|
||||||
set(COCOS2DX_ROOT_PATH "${ENGINEX_ROOT}")
|
set(COCOS2DX_ROOT_PATH "${ENGINEX_ROOT}")
|
||||||
string(REPLACE "\\" "/" COCOS2DX_ROOT_PATH ${COCOS2DX_ROOT_PATH})
|
file(TO_CMAKE_PATH ${COCOS2DX_ROOT_PATH} COCOS2DX_ROOT_PATH) # string(REPLACE "\\" "/" COCOS2DX_ROOT_PATH ${COCOS2DX_ROOT_PATH})
|
||||||
|
message(STATUS "Using system env var ENGINEX_ROOT=${ENGINEX_ROOT}")
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "Please run setup.py add system env var 'ENGINEX_ROOT' to specific the engine root")
|
message(FATAL_ERROR "Please run setup.py add system env var 'ENGINEX_ROOT' to specific the engine root")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -33,9 +33,9 @@ if(ENGINEX_ROOT STREQUAL "")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT (ENGINEX_ROOT STREQUAL ""))
|
if(NOT (ENGINEX_ROOT STREQUAL ""))
|
||||||
message(STATUS "Using system env var ENGINEX_ROOT=${ENGINEX_ROOT}")
|
|
||||||
set(COCOS2DX_ROOT_PATH "${ENGINEX_ROOT}")
|
set(COCOS2DX_ROOT_PATH "${ENGINEX_ROOT}")
|
||||||
string(REPLACE "\\" "/" COCOS2DX_ROOT_PATH ${COCOS2DX_ROOT_PATH})
|
file(TO_CMAKE_PATH ${COCOS2DX_ROOT_PATH} COCOS2DX_ROOT_PATH) # string(REPLACE "\\" "/" COCOS2DX_ROOT_PATH ${COCOS2DX_ROOT_PATH})
|
||||||
|
message(STATUS "Using system env var ENGINEX_ROOT=${ENGINEX_ROOT}")
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "Please run setup.py add system env var 'ENGINEX_ROOT' to specific the engine root")
|
message(FATAL_ERROR "Please run setup.py add system env var 'ENGINEX_ROOT' to specific the engine root")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -11,9 +11,9 @@ if(NOT DEFINED BUILD_ENGINE_DONE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT (ENGINEX_ROOT STREQUAL ""))
|
if(NOT (ENGINEX_ROOT STREQUAL ""))
|
||||||
message(STATUS "Using system env var ENGINEX_ROOT=${ENGINEX_ROOT}")
|
|
||||||
set(COCOS2DX_ROOT_PATH "${ENGINEX_ROOT}")
|
set(COCOS2DX_ROOT_PATH "${ENGINEX_ROOT}")
|
||||||
string(REPLACE "\\" "/" COCOS2DX_ROOT_PATH ${COCOS2DX_ROOT_PATH})
|
file(TO_CMAKE_PATH ${COCOS2DX_ROOT_PATH} COCOS2DX_ROOT_PATH) # string(REPLACE "\\" "/" COCOS2DX_ROOT_PATH ${COCOS2DX_ROOT_PATH})
|
||||||
|
message(STATUS "Using system env var ENGINEX_ROOT=${ENGINEX_ROOT}")
|
||||||
else()
|
else()
|
||||||
set(COCOS2DX_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../..)
|
set(COCOS2DX_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../..)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -34,9 +34,9 @@ if(NOT DEFINED BUILD_ENGINE_DONE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT (ENGINEX_ROOT STREQUAL ""))
|
if(NOT (ENGINEX_ROOT STREQUAL ""))
|
||||||
message(STATUS "Using system env var ENGINEX_ROOT=${ENGINEX_ROOT}")
|
|
||||||
set(COCOS2DX_ROOT_PATH "$ENV{COCOS2DX_ROOT}")
|
set(COCOS2DX_ROOT_PATH "$ENV{COCOS2DX_ROOT}")
|
||||||
string(REPLACE "\\" "/" COCOS2DX_ROOT_PATH ${COCOS2DX_ROOT_PATH})
|
file(TO_CMAKE_PATH ${COCOS2DX_ROOT_PATH} COCOS2DX_ROOT_PATH) # string(REPLACE "\\" "/" COCOS2DX_ROOT_PATH ${COCOS2DX_ROOT_PATH})
|
||||||
|
message(STATUS "Using system env var ENGINEX_ROOT=${ENGINEX_ROOT}")
|
||||||
else()
|
else()
|
||||||
set(COCOS2DX_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../..)
|
set(COCOS2DX_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../..)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -11,9 +11,9 @@ if(NOT DEFINED BUILD_ENGINE_DONE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT (ENGINEX_ROOT STREQUAL ""))
|
if(NOT (ENGINEX_ROOT STREQUAL ""))
|
||||||
message(STATUS "Using system env var ENGINEX_ROOT=${ENGINEX_ROOT}")
|
|
||||||
set(COCOS2DX_ROOT_PATH "$ENV{COCOS2DX_ROOT}")
|
set(COCOS2DX_ROOT_PATH "$ENV{COCOS2DX_ROOT}")
|
||||||
string(REPLACE "\\" "/" COCOS2DX_ROOT_PATH ${COCOS2DX_ROOT_PATH})
|
file(TO_CMAKE_PATH ${COCOS2DX_ROOT_PATH} COCOS2DX_ROOT_PATH) # string(REPLACE "\\" "/" COCOS2DX_ROOT_PATH ${COCOS2DX_ROOT_PATH})
|
||||||
|
message(STATUS "Using system env var ENGINEX_ROOT=${ENGINEX_ROOT}")
|
||||||
else()
|
else()
|
||||||
set(COCOS2DX_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../..)
|
set(COCOS2DX_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../..)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue