This is caused by revision 3434 which introduced PythonLibs of CMake, which always finds Python3 instead of Python2.
A workaround is to configure like this:
cmake .. \ -DCMAKE_INSTALL_PREFIX="/usr" \ -DPYTHON_INCLUDE_DIR=/usr/include/python2.7 \ -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so
As the issue is not caused by compiz, I'm marking it invalid.
This is caused by revision 3434 which introduced PythonLibs of CMake, which always finds Python3 instead of Python2.
A workaround is to configure like this:
cmake .. \
-DCMAKE_ INSTALL_ PREFIX= "/usr" \
-DPYTHON_ INCLUDE_ DIR=/usr/ include/ python2. 7 \
-DPYTHON_ LIBRARY= /usr/lib/ libpython2. 7.so
As the issue is not caused by compiz, I'm marking it invalid.