Skip to content

Commit

Permalink
Make LIBDIR_SUFFIX a CACHE variable
Browse files Browse the repository at this point in the history
This allows it to be overridden by the user.
  • Loading branch information
jrprice committed Oct 19, 2016
1 parent ebedd6e commit 1266f76
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 1266f76

Please sign in to comment.