Closed vejmarie closed 4 years ago
@vejmarie This change causes some "weird" behaviour. When doing a clean build (without setting the cmake prefix), the library get's installed into the PYTHON_ARCH_PACKAGES / PYTHON_SITE_PACKAGES paths (the else() case) However, on a subsequent compilation, CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT becomes falsey, and cmake tries to install the packages into /usr/local.
Should the CMake prefix be used to target another Python install? Since we are using FindPython3 / FindPythonInterp, to determine the include / lib paths (and also the Python version to be used for Boost.Python) I think we should be using the Python3_ROOT_DIR instead?
Can you also point me to the location of the homebrew formula so I can try that out and make sure I don't break anything ;) ?
Just a few modification into CMAKE as to properly install the software with homebrew. The formula is going to be upstream pretty soon within FreeCAD homebrew repository.