From b015577a50064b9802ac5809a25b205080644bfe Mon Sep 17 00:00:00 2001 From: Dilawar Singh <dilawars@ncbs.res.in> Date: Thu, 1 Mar 2018 12:13:31 +0530 Subject: [PATCH] If python-sys failed to provide platform and arch, use default. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d711ca1d..c002349e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,6 +35,9 @@ execute_process( OUTPUT_VARIABLE PY_PLATFORM_ARCH OUTPUT_STRIP_TRAILING_WHITESPACE ) +if( NOT PY_PLATFORM_ARCH ) + set(PY_PLATFORM_ARCH "linux-x86_64" ) +endif( ) message(STATUS "Building bdist for arch - ${PY_PLATFORM_ARCH}") -- GitLab