"platforms/reference/vscode:/vscode.git/clone" did not exist on "5e1a87fbcaadf7540c50a17a943a965242ca7ea7"
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 @@ ...@@ -18,9 +18,15 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.6) CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
if(COMMAND cmake_policy) if(COMMAND cmake_policy)
if(POLICY CMP0003)
cmake_policy(SET CMP0003 NEW) cmake_policy(SET CMP0003 NEW)
endif(POLICY CMP0003)
if(POLICY CMP0005)
cmake_policy(SET CMP0005 NEW) cmake_policy(SET CMP0005 NEW)
endif(POLICY CMP0005)
if(POLICY CMP0011)
cmake_policy(SET CMP0011 NEW) cmake_policy(SET CMP0011 NEW)
endif(POLICY CMP0011)
endif(COMMAND cmake_policy) endif(COMMAND cmake_policy)
# Don't create a new project name if this is part of a mega-build from the # 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