the CMake documentation for the POSITION_INDEPENDENT_CODE
property states that it is set to True for SHARED and
MODULE targets, however mixing objects that are build
without PIC and shared/module objects with PIC does not
end well (linker error) thus the macro to workaround
that fixing the build for x86_64
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
also, the CMake files are installed where they can be found by default
(without any manual configuration) by default - in the top-level
installation directory (CMAKE_INSTALL_PREFIX)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>