Ultimaker / cura-build-environment

CMake project to build dependencies for Cura
GNU Affero General Public License v3.0
24 stars 55 forks source link

Wrong Python check/config order (non-Windows) #153

Closed daniel-starke closed 2 years ago

daniel-starke commented 2 years ago

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).