From 21229f22a70a0f39e901d6b53a3e12f61842de15 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Wed, 30 Jul 2014 15:12:07 -0700 Subject: [PATCH] only set the policy if it exists --- CMakeLists.txt | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 91290c6a96..de23f52271 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,8 +4,16 @@ if (WIN32) cmake_policy(SET CMP0020 NEW) endif (WIN32) -cmake_policy(SET CMP0028 OLD) -cmake_policy(SET CMP0043 OLD) +if (POLICY CMP0028) + cmake_policy(SET CMP0028 OLD) +endif () + +if (POLICY CMP0043) + cmake_policy(SET CMP0043 OLD) +endif () + + + project(hifi) add_definitions(-DGLM_FORCE_RADIANS) @@ -42,7 +50,7 @@ set(CMAKE_AUTOMOC ON) # targets not supported on windows if (NOT WIN32) add_subdirectory(animation-server) -endif (NOT WIN32) +endif () # targets on all platforms add_subdirectory(assignment-client)