"vscode:/vscode.git/clone" did not exist on "efce20c2235ce3f14d74ba4e956688c50fa6e266"
Commit ec81ab80 authored by Christopher Bruns's avatar Christopher Bruns
Browse files

Wrap cmake policy settings in additional layer of if(POLICY ...).

parent 29d3e54c
......@@ -18,9 +18,15 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
cmake_policy(SET CMP0005 NEW)
cmake_policy(SET CMP0011 NEW)
if(POLICY CMP0003)
cmake_policy(SET CMP0003 NEW)
endif(POLICY CMP0003)
if(POLICY CMP0005)
cmake_policy(SET CMP0005 NEW)
endif(POLICY CMP0005)
if(POLICY CMP0011)
cmake_policy(SET CMP0011 NEW)
endif(POLICY CMP0011)
endif(COMMAND cmake_policy)
# Don't create a new project name if this is part of a mega-build from the
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment