Mercurial > trustbridge
diff CMakeLists.txt @ 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 | 2a031ac963b0 |
children | 04c1e0188ac3 |
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)