diff --git a/base.cmake b/base.cmake index 6e6d9e27d..1eb01aace 100644 --- a/base.cmake +++ b/base.cmake @@ -113,10 +113,10 @@ ENDMACRO(_CONCATENATE_ARGUMENTS OUTPUT) # file). # MACRO(SETUP_PROJECT) + INCLUDE(cmake/GNUInstallDirs.cmake) IF(NOT DEFINED CMAKE_INSTALL_LIBDIR) - SET(CMAKE_INSTALL_LIBDIR ${CMAKE_INSTALL_PREFIX}/lib) + SET(CMAKE_INSTALL_LIBDIR lib) ENDIF() - INCLUDE(cmake/GNUInstallDirs.cmake) SET(CMAKE_INSTALL_FULL_PKGLIBDIR ${CMAKE_INSTALL_FULL_LIBDIR}/${PROJECT_NAME}) SET(CMAKE_INSTALL_PKGLIBDIR ${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME})