Guess libdir for archlinux.
authorxantares <xantares09@hotmail.com>
Wed, 14 Aug 2013 18:41:28 +0000 (20:41 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 2 Sep 2013 12:46:52 +0000 (14:46 +0200)
CMakeLists.txt

index 1e74b7f..72302d2 100644 (file)
@@ -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 ()