Skip to content

Commit 678289e

Browse files
committedOct 25, 2016
Use CMAKE_INSTALL_LIBDIR to set LIB_SUFFIX.
OpenEmbedded sets this variable for builds, so use it to figure out if the build should install into the lib64 directories. Signed-off-by: Philip Balister <[email protected]>
1 parent 576aced commit 678289e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎cmake/Modules/GrPlatform.cmake

+8
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,12 @@ endif()
5151
if(NOT DEFINED LIB_SUFFIX AND LIB64_CONVENTION AND CMAKE_SYSTEM_PROCESSOR MATCHES "64$")
5252
set(LIB_SUFFIX 64)
5353
endif()
54+
55+
########################################################################
56+
# Detect /lib versus /lib64
57+
########################################################################
58+
if (CMAKE_INSTALL_LIBDIR MATCHES lib64)
59+
set(LIB_SUFFIX 64)
60+
endif()
61+
5462
set(LIB_SUFFIX ${LIB_SUFFIX} CACHE STRING "lib directory suffix")

0 commit comments

Comments
 (0)
Please sign in to comment.