summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2012-05-09 19:01:02 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2012-05-09 19:01:02 (GMT)
commitcf2fb05be78c6b5f19be37d8b5a9bd65390ac707 (patch)
tree3b3ee052bfc1f468355a33f5507d2e4441ff3836
parent2e966f6c7a965bc30b4e25201119b21aa851d56f (diff)
downloadlibkolabxml-cf2fb05be78c6b5f19be37d8b5a9bd65390ac707.tar.gz
Make buildsystem work with cmake 2.6 also when building tests.
Otherwise it bails out due to the unknown language "NONE"
-rw-r--r--CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e29215a..2e89d0a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,9 @@
-project(Libkolabxml NONE)
+# The special language NONE is not available in cmake 2.6
+if(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 6)
+ project(Libkolabxml NONE)
+else()
+ project(Libkolabxml C)
+endif()
cmake_minimum_required(VERSION 2.6)