SHA256
1
0
forked from pool/alure
alure/fix-lib-suffix.patch

18 lines
414 B
Diff

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -30,6 +30,14 @@
SET(LIB_MINOR_VERSION "2")
SET(LIB_VERSION "${LIB_MAJOR_VERSION}.${LIB_MINOR_VERSION}")
+IF(CMAKE_SIZEOF_VOID_P EQUAL 4)
+ SET(LIB_SUFFIX "")
+ SET(PACK_ARCH "")
+ELSE(CMAKE_SIZEOF_VOID_P EQUAL 4)
+ SET(LIB_SUFFIX 64)
+ SET(PACK_ARCH .x86_64)
+ENDIF(CMAKE_SIZEOF_VOID_P EQUAL 4)
+
INCLUDE_DIRECTORIES(include "${ALURE_BINARY_DIR}")