"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Modules/FindPython/Support.cmake" between
cmake-3.18.3.tar.gz and cmake-3.18.4.tar.gz

About: CMake is a cross-platform build system designed to build, test and package software.

Support.cmake  (cmake-3.18.3):Support.cmake  (cmake-3.18.4)
skipping to change at line 610 skipping to change at line 610
if (version_major VERSION_GREATER "2") if (version_major VERSION_GREATER "2")
file (STRINGS "${_${_PYTHON_PREFIX}_INCLUDE_DIR}/pyconfig.h" config REGE X "(Py_DEBUG|WITH_PYMALLOC|Py_UNICODE_SIZE|MS_WIN32)") file (STRINGS "${_${_PYTHON_PREFIX}_INCLUDE_DIR}/pyconfig.h" config REGE X "(Py_DEBUG|WITH_PYMALLOC|Py_UNICODE_SIZE|MS_WIN32)")
set (abi) set (abi)
if (config MATCHES "#[ ]*define[ ]+MS_WIN32") if (config MATCHES "#[ ]*define[ ]+MS_WIN32")
# ABI not used on Windows # ABI not used on Windows
set (abi "") set (abi "")
else() else()
if (NOT config) if (NOT config)
# pyconfig.h can be a wrapper to a platform specific pyconfig.h # pyconfig.h can be a wrapper to a platform specific pyconfig.h
# In this case, try to identify ABI from include directory # In this case, try to identify ABI from include directory
if (_${_PYTHON_PREFIX}_INCLUDE_DIR MATCHES "python${version_major}\. ${version_minor}+([dmu]*)") if (_${_PYTHON_PREFIX}_INCLUDE_DIR MATCHES "python${version_major}\\ .${version_minor}+([dmu]*)")
set (abi "${CMAKE_MATCH_1}") set (abi "${CMAKE_MATCH_1}")
else() else()
set (abi "") set (abi "")
endif() endif()
else() else()
if (config MATCHES "#[ ]*define[ ]+Py_DEBUG[ ]+1") if (config MATCHES "#[ ]*define[ ]+Py_DEBUG[ ]+1")
string (APPEND abi "d") string (APPEND abi "d")
endif() endif()
if (config MATCHES "#[ ]*define[ ]+WITH_PYMALLOC[ ]+1") if (config MATCHES "#[ ]*define[ ]+WITH_PYMALLOC[ ]+1")
string (APPEND abi "m") string (APPEND abi "m")
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)