[opengtl-commits] [315] minimum required version for cmake is 2.6

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


Revision: 315
Author:   cyrille
Date:     2008-08-06 09:58:38 +0200 (Wed, 06 Aug 2008)

Log Message:
-----------
minimum required version for cmake is 2.6

Modified Paths:
--------------
    trunk/OpenGTL/CMakeLists.txt
    trunk/OpenGTL/cmake/modules/FindLLVM.cmake


Modified: trunk/OpenGTL/CMakeLists.txt
===================================================================
--- trunk/OpenGTL/CMakeLists.txt	2008-08-05 06:36:57 UTC (rev 314)
+++ trunk/OpenGTL/CMakeLists.txt	2008-08-06 07:58:38 UTC (rev 315)
@@ -1,10 +1,7 @@
 project(OpenGTL)
 
-cmake_minimum_required(VERSION 2.4)
+cmake_minimum_required(VERSION 2.6)
 
-cmake_policy(VERSION 2.4)
-
-
 set(LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)" )
 
 enable_testing()

Modified: trunk/OpenGTL/cmake/modules/FindLLVM.cmake
===================================================================
--- trunk/OpenGTL/cmake/modules/FindLLVM.cmake	2008-08-05 06:36:57 UTC (rev 314)
+++ trunk/OpenGTL/cmake/modules/FindLLVM.cmake	2008-08-06 07:58:38 UTC (rev 315)
@@ -20,7 +20,6 @@
   
   MACRO(FIND_LLVM_LIBS LLVM_CONFIG_EXECUTABLE _libname_ LIB_VAR OBJECT_VAR)
     exec_program( perl ARGS ${LLVM_CONFIG_EXECUTABLE} --libs ${_libname_}  OUTPUT_VARIABLE ${LIB_VAR} )
-    set( ${LIB_VAR} " ${${LIB_VAR}}" )
     STRING(REGEX MATCHALL "[^ ]*[.]o[ $]"  ${OBJECT_VAR} ${${LIB_VAR}})
     SEPARATE_ARGUMENTS(${OBJECT_VAR})
     STRING(REGEX REPLACE "[^ ]*[.]o[ $]" ""  ${LIB_VAR} ${${LIB_VAR}})


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