Skip to content

Commit 4d521ec

Browse files
committed
cmake: fix handling of BUILD_WITH_LIBPYTHON
1 parent 22010c6 commit 4d521ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ IF(BUILD_PYTHON_INTERFACE)
169169

170170
MESSAGE(STATUS "Python compiler: ${_python_implementation_value}")
171171
IF(_python_implementation_value MATCHES "PyPy" )
172-
MESSAGE(FATAL_ERROR "PyPy detected, therefore libpython is not available. Please set BUILD_WITH_LIBPYTHON to OFF.")
172+
SET(BUILD_WITH_LIBPYTHON OFF)
173+
MESSAGE(STATUS "PyPy detected, therefore libpython is not available and BUILD_WITH_LIBPYTHON set to OFF.")
173174
ENDIF()
174175
ENDIF()
175176
ELSE(BUILD_PYTHON_INTERFACE)

0 commit comments

Comments
 (0)