Update setup.py to setup.ps1 in cmake [skip ci]

This commit is contained in:
halx99 2023-07-06 14:00:21 +08:00
parent 7243ced7a1
commit 2786031541
4 changed files with 4 additions and 4 deletions

View File

@ -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}

View File

@ -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/)

View File

@ -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/)

View File

@ -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/)