Skip to content

Commit 1b88f5e

Browse files
zheddieGavinGZhangpre-commit-ci[bot]
authored
Support OS400 system (#139)
* Support OS400 system * Try to make all platforms using the cmake instead of configure.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: GavinZhang <zhanggan@cn.ibm.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 17bafab commit 1b88f5e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

CMakeLists.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,11 @@ if(UNIX AND NOT APPLE)
8888
# Dependencies
8989
find_package(PythonInterp REQUIRED)
9090

91-
set(ninja_executable ${Ninja_SOURCE_DIR}/ninja${CMAKE_EXECUTABLE_SUFFIX})
92-
set(bootstrap_command ${PYTHON_EXECUTABLE} configure.py --bootstrap)
93-
# Explicitly defining _BSD_SOURCE is required to support building the wheel on Alpine. See issue #22
94-
set(bootstrap_command ${CMAKE_COMMAND} -E env CXXFLAGS=-D_BSD_SOURCE ${bootstrap_command})
91+
#configure.py is deprecated by ninja-build project.
92+
set(ninja_executable ${Ninja_SOURCE_DIR}/cmake-build/ninja${CMAKE_EXECUTABLE_SUFFIX})
93+
set(local_cmake_command ${CMAKE_COMMAND} -Bcmake-build -H. && ${CMAKE_COMMAND} --build cmake-build)
9594
add_custom_command(
96-
COMMAND ${bootstrap_command}
95+
COMMAND ${local_cmake_command}
9796
OUTPUT ${ninja_executable}
9897
WORKING_DIRECTORY ${Ninja_SOURCE_DIR}
9998
)

0 commit comments

Comments
 (0)