mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-07 02:28:53 +08:00
FindCython.cmake was taken from https://github.com/thewtex/cython-cmake-example. The UseCython module works, but since it is lacking an installation target setup.py will be used instead.
11 lines
295 B
CMake
11 lines
295 B
CMake
get_filename_component(rootdir "$ENV{DESTDIR}" ABSOLUTE)
|
|
if(rootdir STREQUAL "")
|
|
set(rootdir /)
|
|
endif()
|
|
execute_process(
|
|
COMMAND "@PYTHON_EXECUTABLE@" setup.py install
|
|
--skip-build
|
|
--root=${rootdir} --prefix=${CMAKE_INSTALL_PREFIX}
|
|
WORKING_DIRECTORY "@CMAKE_CURRENT_BINARY_DIR@"
|
|
)
|