mirror of https://github.com/axmolengine/axmol.git
Update setup.py to setup.ps1 in cmake [skip ci]
This commit is contained in:
parent
7243ced7a1
commit
2786031541
|
@ -247,7 +247,7 @@ if(WINDOWS)
|
||||||
|
|
||||||
if(NOT NUGET_EXE)
|
if(NOT NUGET_EXE)
|
||||||
message("NUGET.EXE not found.")
|
message("NUGET.EXE not found.")
|
||||||
message(FATAL_ERROR "Please run setup.py again to download NUGET.EXE, and run CMake again.")
|
message(FATAL_ERROR "Please run setup.ps1 again to download NUGET.EXE, and run CMake again.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
exec_program(${NUGET_EXE}
|
exec_program(${NUGET_EXE}
|
||||||
|
|
|
@ -47,7 +47,7 @@ if(NOT DEFINED BUILD_ENGINE_DONE) # to test HelloCpp into root project
|
||||||
file(TO_CMAKE_PATH ${_AX_ROOT_PATH} _AX_ROOT_PATH) # string(REPLACE "\\" "/" _AX_ROOT_PATH ${_AX_ROOT_PATH})
|
file(TO_CMAKE_PATH ${_AX_ROOT_PATH} _AX_ROOT_PATH) # string(REPLACE "\\" "/" _AX_ROOT_PATH ${_AX_ROOT_PATH})
|
||||||
message(STATUS "Using system env var _AX_ROOT=${_AX_ROOT}")
|
message(STATUS "Using system env var _AX_ROOT=${_AX_ROOT}")
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "Please run setup.py add system env var 'AX_ROOT' to specific the engine root")
|
message(FATAL_ERROR "Please run setup.ps1 add system env var 'AX_ROOT' to specific the engine root")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(CMAKE_MODULE_PATH ${_AX_ROOT_PATH}/cmake/Modules/)
|
set(CMAKE_MODULE_PATH ${_AX_ROOT_PATH}/cmake/Modules/)
|
||||||
|
|
|
@ -49,7 +49,7 @@ if(NOT DEFINED BUILD_ENGINE_DONE) # to test HelloLua into root project
|
||||||
file(TO_CMAKE_PATH ${_AX_ROOT_PATH} _AX_ROOT_PATH) # string(REPLACE "\\" "/" _AX_ROOT_PATH ${_AX_ROOT_PATH})
|
file(TO_CMAKE_PATH ${_AX_ROOT_PATH} _AX_ROOT_PATH) # string(REPLACE "\\" "/" _AX_ROOT_PATH ${_AX_ROOT_PATH})
|
||||||
message(STATUS "Using system env var _AX_ROOT=${_AX_ROOT}")
|
message(STATUS "Using system env var _AX_ROOT=${_AX_ROOT}")
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "Please run setup.py add system env var 'AX_ROOT' to specific the engine root")
|
message(FATAL_ERROR "Please run setup.ps1 add system env var 'AX_ROOT' to specific the engine root")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(CMAKE_MODULE_PATH ${_AX_ROOT_PATH}/cmake/Modules/)
|
set(CMAKE_MODULE_PATH ${_AX_ROOT_PATH}/cmake/Modules/)
|
||||||
|
|
|
@ -17,7 +17,7 @@ if(NOT DEFINED BUILD_ENGINE_DONE)
|
||||||
file(TO_CMAKE_PATH ${_AX_ROOT_PATH} _AX_ROOT_PATH) # string(REPLACE "\\" "/" _AX_ROOT_PATH ${_AX_ROOT_PATH})
|
file(TO_CMAKE_PATH ${_AX_ROOT_PATH} _AX_ROOT_PATH) # string(REPLACE "\\" "/" _AX_ROOT_PATH ${_AX_ROOT_PATH})
|
||||||
message(STATUS "Using system env var _AX_ROOT=${_AX_ROOT}")
|
message(STATUS "Using system env var _AX_ROOT=${_AX_ROOT}")
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "Please run setup.py add system env var 'AX_ROOT' to specific the engine root")
|
message(FATAL_ERROR "Please run setup.ps1 add system env var 'AX_ROOT' to specific the engine root")
|
||||||
endif()
|
endif()
|
||||||
set(CMAKE_MODULE_PATH ${_AX_ROOT_PATH}/cmake/Modules/)
|
set(CMAKE_MODULE_PATH ${_AX_ROOT_PATH}/cmake/Modules/)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue