From 74049fe086881da494885357a48a20b9f75423d3 Mon Sep 17 00:00:00 2001 From: Michel Zou Date: Wed, 30 Jan 2013 21:57:28 +0100 Subject: [PATCH] Allow to override LIB_SUFFIX --- CMakeLists.txt | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0bad0d7..3616c66 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,10 +46,12 @@ set(CPACK_COMPONENT_SHAREDLIBS_GROUP "Development") set(CPACK_COMPONENT_STATICLIBS_GROUP "Development") set(CPACK_COMPONENT_HEADERS_GROUP "Development") -# automatically set lib suffix -if ( UNIX AND NOT APPLE AND NOT CMAKE_CROSSCOMPILING AND NOT EXISTS "/etc/debian_version" ) - if ( CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT LIB_SUFFIX ) - set ( LIB_SUFFIX 64 ) +# guess LIB_SUFFIX, don't take debian multiarch into account +if ( NOT DEFINED LIB_SUFFIX ) + if ( CMAKE_SYSTEM_NAME MATCHES "Linux" AND NOT CMAKE_CROSSCOMPILING AND NOT EXISTS "/etc/debian_version" ) + if ( "${CMAKE_SIZEOF_VOID_P}" EQUAL "8" ) + set ( LIB_SUFFIX 64 ) + endif () endif () endif () -- 1.7.1