[opengtl-commits] [202] allow to install library in /usr/ lib64 for sucky distribution like OpenSuSE |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/opengtl-commits Archives
]
Revision: 202
Author: cyrille
Date: 2008-06-16 22:48:58 +0200 (Mon, 16 Jun 2008)
Log Message:
-----------
allow to install library in /usr/lib64 for sucky distribution like OpenSuSE
Modified Paths:
--------------
trunk/OpenGTL/CMakeLists.txt
Modified: trunk/OpenGTL/CMakeLists.txt
===================================================================
--- trunk/OpenGTL/CMakeLists.txt 2008-06-16 20:48:40 UTC (rev 201)
+++ trunk/OpenGTL/CMakeLists.txt 2008-06-16 20:48:58 UTC (rev 202)
@@ -1,5 +1,7 @@
project(OpenGTL)
+set(LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)" )
+
enable_testing()
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules )
@@ -8,7 +10,7 @@
set(OPENGTL_LIB_VERSION ${OPENGTL_VERSION})
set(OPENGTL_LIB_SOVERSION "0.3")
-set(LIB_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/lib/)
+set(LIB_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/)
set(INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/include/)
set(BIN_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/bin/)
set(SHARE_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/share/OpenGTL/)