[opengtl-commits] [201] allow to install library in /usr/ lib64 for sucky distribution like OpenSuSE

[ Thread Index | Date Index | More lists.tuxfamily.org/opengtl-commits Archives ]


Revision: 201
Author:   cyrille
Date:     2008-06-16 22:48:40 +0200 (Mon, 16 Jun 2008)

Log Message:
-----------
allow to install library in /usr/lib64 for sucky distribution like OpenSuSE

Modified Paths:
--------------
    tags/OpenGTL/0.9.2/CMakeLists.txt


Modified: tags/OpenGTL/0.9.2/CMakeLists.txt
===================================================================
--- tags/OpenGTL/0.9.2/CMakeLists.txt	2008-06-16 20:06:53 UTC (rev 200)
+++ tags/OpenGTL/0.9.2/CMakeLists.txt	2008-06-16 20:48:40 UTC (rev 201)
@@ -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.2")
 
-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/)


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/