summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorKlaus Kaempf <kkaempf@suse.de>2008-05-16 10:51:57 +0000
committerKlaus Kaempf <kkaempf@suse.de>2008-05-16 10:51:57 +0000
commit08b01f0a29669e59cdc29c0265fc00126586c4da (patch)
tree5ffd97688c39a09c7ad6d7566cd3905701961124 /CMakeLists.txt
parent5d3d8f9d7f11a29b8130c55dd65b4ec35e755abb (diff)
downloadlibsolv-08b01f0a29669e59cdc29c0265fc00126586c4da.tar.gz
libsolv-08b01f0a29669e59cdc29c0265fc00126586c4da.tar.bz2
libsolv-08b01f0a29669e59cdc29c0265fc00126586c4da.zip
adapt to cmake 2.6:
use old behaviour for preprocessor parameters
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index cbbe485..f5feb1f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,5 +1,16 @@
PROJECT(satsolver)
+cmake_minimum_required(VERSION 2.4)
+
+#IF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERISION} GREATER 2.4)
+#ENDIF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERISION} GREATER 2.4)
+
+if(COMMAND cmake_policy)
+ # escape preprocessor, see -DVERSION below
+ cmake_policy(SET CMP0005 OLD)
+endif(COMMAND cmake_policy)
+
+
# Library
IF ( DEFINED LIB )
SET ( LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/${LIB}" )