From d872432e344577c86d324ab6c90e15088c5839ac Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Fri, 9 Jan 2015 21:37:55 -0800 Subject: [PATCH] CMake Policies must exist before they can be set --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b8f23719..511bca95 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,9 @@ project(Plasma) cmake_minimum_required(VERSION 2.8.11.2) -cmake_policy(SET CMP0054 NEW) + +if(POLICY CMP0054) + cmake_policy(SET CMP0054 NEW) +endif() # Set up Product Identification parameters set(PRODUCT_BRANCH_ID "1" CACHE STRING "Branch ID")