From 4595562de4e30844b321c6cd652d63acd160c451 Mon Sep 17 00:00:00 2001 From: "jonathan.r.paton@googlemail.com" Date: Fri, 17 Mar 2017 15:07:47 +0000 Subject: [PATCH] only set policy CMP0042 if cmake version > 3.0 --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 419d56d74..1ff4493d1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,9 @@ sfml_set_option(CMAKE_BUILD_TYPE Release STRING "Choose the type of build (Debug set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Suppress Mac OS X RPATH warnings and adopt new related behaviors -cmake_policy(SET CMP0042 NEW) +if(NOT CMAKE_VERSION VERSION_LESS 3.0) + cmake_policy(SET CMP0042 NEW) +endif() # set Android specific options