CMAKE: Fix package creation on 32-bit machines
authorUwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Sun, 2 May 2010 15:46:45 +0000 (17:46 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Tue, 4 May 2010 16:24:07 +0000 (18:24 +0200)
Appended patch fixes a typo that caused the creation of _64.[deb|rpm]
also for 32-bit builds.

CMakeLists.txt

index 3595198..d73584b 100644 (file)
@@ -42,7 +42,7 @@ set(CPACK_COMPONENT_HEADERS_GROUP    "Development")
 IF(CMAKE_SIZEOF_VOID_P EQUAL 4)
     SET(LIB_SUFFIX "")
     SET(PACK_ARCH "")
-  ELSE(CMAKE_SIZEOF_VOID_P EQUAL 4)
+  ELSE(CMAKE_SIZEOF_VOID_P EQUAL 8)
     SET(LIB_SUFFIX 64)
     SET(PACK_ARCH .x86_64)
 endif(CMAKE_SIZEOF_VOID_P EQUAL 4)