The Python specific paths are constructed in cmake/os.cmake. These access the cmake Python_VERSION variables. These, however, are undefined until projects/python.cmake, which calls find_package() to fill these variables and is located after os.cmake in CMakeLists.txt. This results in a wrong python site-packages path (PYTHONPATH).
The Python specific paths are constructed in
cmake/os.cmake
. These access the cmakePython_VERSION
variables. These, however, are undefined untilprojects/python.cmake
, which callsfind_package()
to fill these variables and is located afteros.cmake
inCMakeLists.txt
. This results in a wrong python site-packages path (PYTHONPATH
).