From b882cd151e115a3a862c2323b21f353a5f134c97 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 4 Jan 2015 18:59:09 -0500 Subject: [PATCH] Build - Added code to set poicy CMP0037 to "OLD", which eliminates the warnings about the 'test' target. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5eb563f11..cc0d186d7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,8 @@ cmake_minimum_required (VERSION 2.8) set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required +if(POLICY CMP0037) + cmake_policy(SET CMP0037 OLD) +endif() include (CheckFunctionExists) include (CheckStructHasMember)