diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 4e0d3e216..98f98fa10 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -7,7 +7,9 @@ # setting this makes CMake allow normal looking IF ELSE statements SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true) cmake_minimum_required(VERSION 2.4) -cmake_policy(SET CMP0003 NEW) +if(COMMAND cmake_policy) + cmake_policy(SET CMP0003 NEW) +endif() PROJECT(examples)