2011-12-06 09:02:07 +04:00
|
|
|
# GNUInstallDirs is a relatively new cmake module, so wrap it to avoid errors
|
|
|
|
include(GNUInstallDirs OPTIONAL RESULT_VARIABLE GID_PATH)
|
|
|
|
if(GID_PATH STREQUAL "NOTFOUND")
|
|
|
|
if(NOT DEFINED CMAKE_INSTALL_BINDIR)
|
|
|
|
set(CMAKE_INSTALL_BINDIR "bin" CACHE PATH "user executables (bin)")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT DEFINED CMAKE_INSTALL_LIBDIR)
|
2011-12-06 09:39:43 +04:00
|
|
|
set(CMAKE_INSTALL_LIBDIR "lib${LIB_SUFFIX}" CACHE PATH "object code libraries (lib)")
|
2011-12-06 09:02:07 +04:00
|
|
|
endif()
|
|
|
|
|
2012-08-15 08:26:04 +04:00
|
|
|
foreach(dir BINDIR LIBDIR)
|
|
|
|
if(NOT IS_ABSOLUTE ${CMAKE_INSTALL_${dir}})
|
|
|
|
set(CMAKE_INSTALL_FULL_${dir} "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_${dir}}")
|
|
|
|
else()
|
|
|
|
set(CMAKE_INSTALL_FULL_${dir} "${CMAKE_INSTALL_${dir}}")
|
|
|
|
endif()
|
|
|
|
endforeach()
|
|
|
|
|
2011-12-06 09:02:07 +04:00
|
|
|
mark_as_advanced(CMAKE_INSTALL_BINDIR CMAKE_INSTALL_LIBDIR)
|
|
|
|
endif()
|