cmake_minimum_required impacts execution of Python through Boost
Changing the version from 3.1.0
to 3.8.0
in command cmake_minimum_required
(keeping the same CMake version) generates a crash in execution of Python through Boost.
The attached example is a simple C++ code executing a simple Python command with Boost.Python and the CMakeLists.txt
required to compile it. This example works. But changing the required version to 3.8.0
generates a not-woring executable (crashing with the following error : Fatal Python error: PyThreadState_Get: no current thread Aborted (core dumped)
)
After some tests, it works with version value 3.0.0
to 3.3.0
and fails with version value 3.4.0
to 3.8.0
.
Configuration : Linux openSUSE 42.2 GCC 4.8.5 CMake 3.8.2 Python 2.7.13 Boost 1.64.0