From c12bc95fd80444921f1c76805e11e5a056bfefa9 Mon Sep 17 00:00:00 2001 From: Florian Faltermeier Date: Tue, 20 Sep 2016 22:35:52 +0200 Subject: [PATCH] support alternative CMAKE_INSTALL_LIBDIR --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a444fdd..2eddb71 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -139,7 +139,11 @@ include_directories( set(DEFAULT_INCLUDE_SUBDIR include) set(DEFAULT_BIN_SUBDIR bin) -set(DEFAULT_LIB_SUBDIR lib) +if(DEFINED CMAKE_INSTALL_LIBDIR) + set(DEFAULT_LIB_SUBDIR "${CMAKE_INSTALL_LIBDIR}") +else() + set(DEFAULT_LIB_SUBDIR "lib") +endif() set(LIBRARY_CPP ${SRC_DIR}/GridFile.cpp