From c3ebcce89dd9a0b244509365378dea7e6f720524 Mon Sep 17 00:00:00 2001 From: vitaut Date: Sat, 18 Apr 2015 19:15:36 -0700 Subject: [PATCH] Make library install dir configurable via FMT_LIB_DIR CMake var --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4a91b015..9164e301 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)