[python init] Prepend install prefix if libdir is not absolute

For python init script so it can work by default
This commit is contained in:
Adrian Insaurralde Avalos
2022-07-24 21:06:33 -04:00
committed by Uwe
parent ae33ad545f
commit 28ba51f23f

View File

@@ -10,7 +10,8 @@ if (WIN32)
REALPATH BASE_DIR "${CMAKE_INSTALL_PREFIX}")
set( ${CMAKE_INSTALL_BINDIR})
else()
set(FREECAD_LIBRARY_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR})
get_filename_component(FREECAD_LIBRARY_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}"
REALPATH BASE_DIR "${CMAKE_INSTALL_PREFIX}")
endif()
configure_file(__init__.py.template ${NAMESPACE_INIT})