From 1266f76504f97fd1bb270623bc0b3e92d2c7f174 Mon Sep 17 00:00:00 2001 From: James Price Date: Wed, 19 Oct 2016 21:59:56 +0100 Subject: [PATCH] Make LIBDIR_SUFFIX a CACHE variable This allows it to be overridden by the user. --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 546575bb..4838fd51 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -149,11 +149,13 @@ else() endif() # Check for library directory suffixes -set(LIBDIR_SUFFIX "") +set(_LIBDIR_SUFFIX "") get_property(USING_LIB64 GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS) if (USING_LIB64 AND NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin") - set(LIBDIR_SUFFIX "64") + set(_LIBDIR_SUFFIX "64") endif() +set(LIBDIR_SUFFIX "${_LIBDIR_SUFFIX}" + CACHE STRING "Suffix for installed library directory") # Generate stringified clc.h add_custom_command(