Restore cmake-2.8 compatibility (#502)
authorAlpar Juttner <alpar@cs.elte.hu>
Wed, 09 Jul 2014 14:40:32 +0200
changeset 11341552352f9798
parent 1130 ce1533650f7d
child 1135 5de6a70446f6
Restore cmake-2.8 compatibility (#502)

Fix cmake-2.8 incompatibility introduced in [fe4ff72e2f14].
Thanks to amluto for reporting the regression
CMakeLists.txt
     1.1 --- a/CMakeLists.txt	Mon Jul 07 15:40:12 2014 +0200
     1.2 +++ b/CMakeLists.txt	Wed Jul 09 14:40:32 2014 +0200
     1.3 @@ -1,6 +1,8 @@
     1.4  CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
     1.5  
     1.6 -CMAKE_POLICY(SET CMP0048 OLD)
     1.7 +IF(POLICY CMP0048) 
     1.8 +  CMAKE_POLICY(SET CMP0048 OLD) 
     1.9 +ENDIF(POLICY CMP0048)
    1.10  
    1.11  SET(PROJECT_NAME "LEMON")
    1.12  PROJECT(${PROJECT_NAME})