Use relative paths for CMAKE_INSTALL_${DATADIR, DATAROOTDIR, DOCDIR}

And remove some now unnecessary CMAKE_INSTALL options
This commit is contained in:
Adrian Insaurralde 2022-12-14 20:57:11 -03:00
parent 45ef9dde62
commit 54b068a5da

View file

@ -96,11 +96,9 @@ build() {
-D PYTHON_EXECUTABLE=/usr/bin/python \ -D PYTHON_EXECUTABLE=/usr/bin/python \
-D INSTALL_TO_SITEPACKAGES=ON \ -D INSTALL_TO_SITEPACKAGES=ON \
-D CMAKE_INSTALL_PREFIX='/usr/lib/freecad' \ -D CMAKE_INSTALL_PREFIX='/usr/lib/freecad' \
-D CMAKE_INSTALL_BINDIR='/usr/lib/freecad/bin' \ -D CMAKE_INSTALL_DATADIR='../../share/freecad' \
-D CMAKE_INSTALL_LIBDIR='/usr/lib/freecad/lib' \ -D CMAKE_INSTALL_DATAROOTDIR='../../share' \
-D CMAKE_INSTALL_DATADIR='/usr/share/freecad' \ -D CMAKE_INSTALL_DOCDIR='../../doc/freecad'
-D CMAKE_INSTALL_DATAROOTDIR='/usr/share' \
-D CMAKE_INSTALL_DOCDIR='/usr/share/doc/freecad'
cmake --build build cmake --build build
} }