diff libfdproto/CMakeLists.txt @ 1286:ecb844d6d87d

Fix compilation issue on older CMake
author Sebastien Decugis <sdecugis@freediameter.net>
date Sun, 04 Jan 2015 01:22:58 +0800
parents 38e4a7c318ac
children 9084c6f94a0a
line wrap: on
line diff
--- a/libfdproto/CMakeLists.txt	Sun Jan 04 01:22:37 2015 +0800
+++ b/libfdproto/CMakeLists.txt	Sun Jan 04 01:22:58 2015 +0800
@@ -2,7 +2,10 @@
 Project("libfdproto" C)
 
 # Configuration for newer cmake
-cmake_policy(SET CMP0022 OLD)
+cmake_policy(VERSION 2.6)
+if (POLICY CMP0022)
+	cmake_policy(SET CMP0022 OLD)
+endif (POLICY CMP0022)
 
 # List of source files for the library
 SET(LFDPROTO_SRC
"Welcome to our mercurial repository"