From 9fdef221ac351cc6f4368b038c4c2aae9816d60c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= Date: Tue, 9 Aug 2011 16:09:06 +0200 Subject: CMake policy 0017 to NEW --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e823062..1c55386 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,11 @@ cmake_minimum_required(VERSION 2.6) +if(COMMAND cmake_policy) + cmake_policy(SET CMP0017 NEW) +endif(COMMAND cmake_policy) + + ENABLE_TESTING() SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -fno-strict-aliasing") @@ -53,7 +58,7 @@ EXECUTE_PROCESS(COMMAND "${READ_LINK}" ${ZYPP_LIBRARY} OUTPUT_VARIABLE ZYPP_SOFI # match number at end, strip trailing \n by using a sub-match STRING(REGEX MATCH "([0-9]+)\n$" ZYPP_VERSION "${ZYPP_SOFILE}") SET( ZYPP_VERSION "${CMAKE_MATCH_1}" ) -MESSAGE(STATUS "Zypp so library: ${ZYPP_SOFILE}, version ${ZYPP_VERSION}") +MESSAGE(STATUS "Zypp so library version ${ZYPP_VERSION}") SET( SWIG_DEFINITIONS -DZYPP_DEPRECATED -DZYPP_VERSION=${ZYPP_VERSION} ) -- cgit v1.2.3