diff options
author | Josh Blum <josh@joshknows.com> | 2012-03-12 09:55:54 -0700 |
---|---|---|
committer | Johnathan Corgan <jcorgan@corganenterprises.com> | 2012-03-12 09:55:54 -0700 |
commit | 8e013157752f1b42665430fde0f1c6f7d7147153 (patch) | |
tree | e5ff7fd8b8d9366a46f01ebc4dcb0ee62d915190 /cmake | |
parent | e9a9b3d602a4d715789ab1b83929ff3934bf4086 (diff) |
cmake: add slackware detection
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/Modules/GrPlatform.cmake | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/cmake/Modules/GrPlatform.cmake b/cmake/Modules/GrPlatform.cmake index ce2e15fefb..dde65cee57 100644 --- a/cmake/Modules/GrPlatform.cmake +++ b/cmake/Modules/GrPlatform.cmake @@ -37,10 +37,18 @@ if(LINUX AND EXISTS "/etc/redhat-release") set(REDHAT TRUE) endif() +if(LINUX AND EXISTS "/etc/slackware-version") + set(SLACKWARE TRUE) +endif() + ######################################################################## # when the library suffix should be 64 (applies to redhat linux family) ######################################################################## -if(NOT DEFINED LIB_SUFFIX AND REDHAT AND CMAKE_SYSTEM_PROCESSOR MATCHES "64$") +if (REDHAT OR SLACKWARE) + set(LIB64_CONVENTION TRUE) +endif() + +if(NOT DEFINED LIB_SUFFIX AND LIB64_CONVENTION AND CMAKE_SYSTEM_PROCESSOR MATCHES "64$") set(LIB_SUFFIX 64) endif() set(LIB_SUFFIX ${LIB_SUFFIX} CACHE STRING "lib directory suffix") |