diff options
author | Mihael Koep <koep@schneide.com> | 2012-09-04 16:07:09 +0200 |
---|---|---|
committer | Mihael Koep <koep@schneide.com> | 2012-09-04 16:07:09 +0200 |
commit | 2fad826eb9b5ca6a2825193e864545e2d4976966 (patch) | |
tree | f405ac4be43f2e212d7c7153c18f986c9921b252 /src | |
parent | c45a310216bc28a567195ebcc71d9e1cf0f16ba1 (diff) | |
download | uca-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.txt | 7 |
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}) |