From: xantares Date: Wed, 14 Aug 2013 18:41:28 +0000 (+0200) Subject: Guess libdir for archlinux. X-Git-Tag: v1.1rc1~19 X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=commitdiff_plain;h=7a6dfcaa1bbd52d4fec9791658d29d07cec82df8 Guess libdir for archlinux. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 1e74b7f..72302d2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,7 +50,10 @@ option ( STATICLIBS "Build static libraries" ON ) # 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_SYSTEM_NAME MATCHES "Linux" + AND NOT CMAKE_CROSSCOMPILING + AND NOT EXISTS "/etc/debian_version" + AND NOT EXISTS "/etc/arch-release" ) if ( "${CMAKE_SIZEOF_VOID_P}" EQUAL "8" ) set ( LIB_SUFFIX 64 ) endif ()