summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMihael Koep <koep@schneide.com>2012-09-04 16:07:09 +0200
committerMihael Koep <koep@schneide.com>2012-09-04 16:07:09 +0200
commit2fad826eb9b5ca6a2825193e864545e2d4976966 (patch)
treef405ac4be43f2e212d7c7153c18f986c9921b252 /src
parentc45a310216bc28a567195ebcc71d9e1cf0f16ba1 (diff)
downloaduca-2fad826eb9b5ca6a2825193e864545e2d4976966.tar.gz
uca-2fad826eb9b5ca6a2825193e864545e2d4976966.tar.bz2
uca-2fad826eb9b5ca6a2825193e864545e2d4976966.tar.xz
uca-2fad826eb9b5ca6a2825193e864545e2d4976966.zip
Implement 64bit detection for install directory of libuca.
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 94de82d..c318d52 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -264,7 +264,12 @@ endif()
# --- Install target ----------------------------------------------------------
-set(LIB_INSTALL_DIR "lib${LIB_SUFFIX}")
+# check for 64 bit
+if (CMAKE_SIZEOF_VOID_P EQUAL 8)
+ set(LIB_INSTALL_DIR "lib64")
+else()
+ set(LIB_INSTALL_DIR "lib")
+endif()
install(TARGETS uca
LIBRARY DESTINATION ${LIB_INSTALL_DIR})