diff options
author | Klaus Kämpf <kkaempf@suse.de> | 2011-08-09 16:09:06 +0200 |
---|---|---|
committer | Klaus Kämpf <kkaempf@suse.de> | 2011-08-09 16:09:06 +0200 |
commit | 9fdef221ac351cc6f4368b038c4c2aae9816d60c (patch) | |
tree | 6d5c1800feaeeb98a7ad62d0e9dabd19ecb0d99b | |
parent | 7ab66f3ee71b07f291f445b1fd06fb70ecab9796 (diff) | |
download | libzypp-bindings-9fdef221ac351cc6f4368b038c4c2aae9816d60c.tar.gz libzypp-bindings-9fdef221ac351cc6f4368b038c4c2aae9816d60c.tar.bz2 libzypp-bindings-9fdef221ac351cc6f4368b038c4c2aae9816d60c.zip |
CMake policy 0017 to NEW
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
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} ) |