X-Git-Url: http://developer.intra2net.com/git/?a=blobdiff_plain;f=CMakeLists.txt;h=67f0c2225bb20e80e67859ae50c3b1fdc740597e;hb=9330b1205d8889de6586606228bfb5774491315b;hp=f7df0a974b91d364b7288fdee66f21cff1b7edda;hpb=764e223d730d3503bcbcc81748b3cb4709956747;p=libftdi diff --git a/CMakeLists.txt b/CMakeLists.txt index f7df0a9..67f0c22 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,17 +43,20 @@ 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 ) + endif () +endif () + if(NOT APPLE) - # Create suffix to eventually install in lib64 if(CMAKE_SIZEOF_VOID_P EQUAL 4) - SET(LIB_SUFFIX "") SET(PACK_ARCH "") else(CMAKE_SIZEOF_VOID_P EQUAL 8) - SET(LIB_SUFFIX 64) SET(PACK_ARCH .x86_64) endif(CMAKE_SIZEOF_VOID_P EQUAL 4) else(NOT APPLE) - SET(LIB_SUFFIX "") SET(PACK_ARCH "") endif(NOT APPLE)