From 2fad826eb9b5ca6a2825193e864545e2d4976966 Mon Sep 17 00:00:00 2001 From: Mihael Koep Date: Tue, 4 Sep 2012 16:07:09 +0200 Subject: Implement 64bit detection for install directory of libuca. --- src/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') 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}) -- cgit v1.2.3