Mercurial > hg > freeDiameter
changeset 1286:ecb844d6d87d
Fix compilation issue on older CMake
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Sun, 04 Jan 2015 01:22:58 +0800 |
parents | 1e893500dc72 |
children | 38b0e251b821 |
files | libfdcore/CMakeLists.txt libfdproto/CMakeLists.txt |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libfdcore/CMakeLists.txt Sun Jan 04 01:22:37 2015 +0800 +++ b/libfdcore/CMakeLists.txt Sun Jan 04 01:22:58 2015 +0800 @@ -2,7 +2,10 @@ Project("freeDiameter core library" 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) # Configuration parser BISON_FILE(fdd.y)
--- 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