Make library install dir configurable via FMT_LIB_DIR CMake var

This commit is contained in:
vitaut 2015-04-18 19:15:36 -07:00
parent f35a220536
commit c3ebcce89d

View File

@ -186,6 +186,8 @@ if (EXISTS .gitignore)
include(CPack)
endif ()
# Install our targets
install(TARGETS format DESTINATION lib)
# Install targets.
set(FMT_LIB_DIR lib CACHE STRING
"Installation directory for libraries, relative to ${CMAKE_INSTALL_PREFIX}.")
install(TARGETS format DESTINATION ${FMT_LIB_DIR})
install(FILES format.h DESTINATION include)