Mercurial > trustbridge
changeset 106:37198bd07182
Check for policy CMP0020 before setting it
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Fri, 21 Mar 2014 15:01:25 +0000 |
parents | faf96d9a1010 |
children | 5b9af103a355 9bfa2a60b9b8 |
files | CMakeLists.txt |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/CMakeLists.txt Fri Mar 21 14:56:29 2014 +0000 +++ b/CMakeLists.txt Fri Mar 21 15:01:25 2014 +0000 @@ -7,7 +7,10 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/") #Old qtmain linking behavior to be compatible with cmake versions < 2.8.11 -cmake_policy(SET CMP0020 OLD) + +if(POLICY CMP0020) + cmake_policy(SET CMP0020 OLD) +endif() include(CTest) include(GenerateCppcheck)