[Bf-blender-cvs] [bd43ac0] master: CMake: quite warnings with 3.0 (without breaking < 3.0 CMakes)

Campbell Barton noreply at git.blender.org
Wed Jun 11 08:01:43 CEST 2014


Commit: bd43ac04a5b36743d7234e076c1d9b39657dda48
Author: Campbell Barton
Date:   Wed Jun 11 02:59:03 2014 -0300
https://developer.blender.org/rBbd43ac04a5b36743d7234e076c1d9b39657dda48

CMake: quite warnings with 3.0 (without breaking < 3.0 CMakes)

===================================================================

M	CMakeLists.txt

===================================================================

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7385182..0ab31dd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -47,6 +47,11 @@ endif()
 
 cmake_minimum_required(VERSION 2.8)
 
+if(NOT (CMAKE_VERSION VERSION_LESS 3.0))
+	# keep until CMake-3.0 is min requirement
+	cmake_policy(SET CMP0043 OLD)
+endif()
+
 if(NOT EXECUTABLE_OUTPUT_PATH)
 	set(FIRST_RUN "TRUE")
 endif()




More information about the Bf-blender-cvs mailing list