summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/CMakeLists.txt')
-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})