diff options
author | Philip Balister <philip@balister.org> | 2016-08-04 08:20:55 -0400 |
---|---|---|
committer | Philip Balister <philip@balister.org> | 2016-10-25 15:01:31 -0400 |
commit | 678289e5e8eb7126e6a95c3ffcbd7d555da2b733 (patch) | |
tree | 7aacb08decdcd3dbb11a464771b1e0032336ab3b /cmake | |
parent | 576aced4b02988368de02eb1668ef3535dca2a80 (diff) |
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 <philip@balister.org>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/Modules/GrPlatform.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/Modules/GrPlatform.cmake b/cmake/Modules/GrPlatform.cmake index fbbea5fee0..00a53d04d9 100644 --- a/cmake/Modules/GrPlatform.cmake +++ b/cmake/Modules/GrPlatform.cmake @@ -51,4 +51,12 @@ endif() if(NOT DEFINED LIB_SUFFIX AND LIB64_CONVENTION AND CMAKE_SYSTEM_PROCESSOR MATCHES "64$") set(LIB_SUFFIX 64) endif() + +######################################################################## +# Detect /lib versus /lib64 +######################################################################## +if (CMAKE_INSTALL_LIBDIR MATCHES lib64) + set(LIB_SUFFIX 64) +endif() + set(LIB_SUFFIX ${LIB_SUFFIX} CACHE STRING "lib directory suffix") |