Revision: 65598
          http://sourceforge.net/p/brlcad/code/65598
Author:   starseeker
Date:     2015-07-13 13:52:58 +0000 (Mon, 13 Jul 2015)
Log Message:
-----------
Simplify policy setup slightly

Modified Paths:
--------------
    brlcad/trunk/CMakeLists.txt

Modified: brlcad/trunk/CMakeLists.txt
===================================================================
--- brlcad/trunk/CMakeLists.txt 2015-07-13 12:43:35 UTC (rev 65597)
+++ brlcad/trunk/CMakeLists.txt 2015-07-13 13:52:58 UTC (rev 65598)
@@ -121,19 +121,18 @@
 
 # Minimum required version of CMake
 cmake_minimum_required(VERSION 2.8.4)
-if(COMMAND CMAKE_POLICY)
-  if ("${CMAKE_VERSION}" VERSION_GREATER 2.99)
-    CMAKE_POLICY(SET CMP0026 OLD)
+if(POLICY 0026)
+  CMAKE_POLICY(SET CMP0026 OLD)
+endif(POLICY 0026)
+if(POLICY 0042)
     CMAKE_POLICY(SET CMP0042 NEW)
-  endif ("${CMAKE_VERSION}" VERSION_GREATER 2.99)
+endif(POLICY 0042)
+if ("${CMAKE_VERSION}" VERSION_GREATER 3.0.9)
+  CMAKE_POLICY(SET CMP0046 NEW)
+  CMAKE_POLICY(SET CMP0053 NEW)
+  CMAKE_POLICY(SET CMP0054 NEW)
+endif ("${CMAKE_VERSION}" VERSION_GREATER 3.0.9)
 
-  if ("${CMAKE_VERSION}" VERSION_GREATER 3.0.9)
-    CMAKE_POLICY(SET CMP0046 NEW)
-    CMAKE_POLICY(SET CMP0053 NEW)
-    CMAKE_POLICY(SET CMP0054 NEW)
-  endif ("${CMAKE_VERSION}" VERSION_GREATER 3.0.9)
-endif(COMMAND CMAKE_POLICY)
-
 # set CMake project name
 project(BRLCAD)
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to