From 37390e64dc984bc714dc1ba9b5b81a5bd6f73a09 Mon Sep 17 00:00:00 2001 From: nojhan Date: Tue, 13 Sep 2011 09:30:17 +0200 Subject: [PATCH] CMake > 2.8 is needed, because of the FindOpenMP feature --- eo/CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/eo/CMakeLists.txt b/eo/CMakeLists.txt index 5b884001..d7ef8558 100644 --- a/eo/CMakeLists.txt +++ b/eo/CMakeLists.txt @@ -1,3 +1,4 @@ + ###################################################################################### ### 0) If you want to set your variables in eo-conf.cmake and avoid the cmd line ###################################################################################### @@ -14,6 +15,9 @@ INCLUDE(eo-conf.cmake OPTIONAL) # set the project name and other variables PROJECT(EO) +# CMake > 2.8 is needed, because of the FindOpenMP feature +cmake_minimum_required(VERSION 2.8) + #SET(PROJECT_VERSION_MAJOR 1) #SET(PROJECT_VERSION_MINOR 1) #SET(PROJECT_VERSION_PATCH 1) @@ -26,9 +30,6 @@ SET(PACKAGE_NAME "Evolving Objects" CACHE STRING "Package name" FORCE) SET(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}"CACHE STRING "Package string full name" FORCE) SET(PACKAGE_TARNAME "eo" CACHE STRING "Package tar name" FORCE) -# check cmake version compatibility -CMAKE_MINIMUM_REQUIRED(VERSION 2.6) - # regular expression checking INCLUDE_REGULAR_EXPRESSION("^.*$" "^$")