Commit 6524eb1c authored by jcfr's avatar jcfr

ENH: Factor out CMake code used to check platform into SlicerBlockPlatformCheck.cmake

git-svn-id: http://svn.slicer.org/Slicer4/trunk@16370 3bd1e089-480b-0410-8dfb-8563597acbee
parent f87d7aaa
################################################################################
#
# Program: 3D Slicer
#
# Copyright (c) 2010 Kitware Inc.
#
# See Doc/copyright/copyright.txt
# or http://www.slicer.org/copyright/copyright.txt for details.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# This file was originally developed by Jean-Christophe Fillion-Robin, Kitware Inc.
# and was partially funded by NIH grant 3P41RR013218-12S1
#
################################################################################
#
# Slicer Platform check
#
#
# Usage:
# The check can be enabled/disabled by setting Slicer_PLATFORM_CHECK to
# True/False before including the block.
#
IF(NOT DEFINED Slicer_PLATFORM_CHECK)
SET(Slicer_PLATFORM_CHECK true)
ENDIF()
if(Slicer_PLATFORM_CHECK)
# See CMake/Modules/Platform/Darwin.cmake)
# 6.x == Mac OSX 10.2 (Jaguar)
# 7.x == Mac OSX 10.3 (Panther)
# 8.x == Mac OSX 10.4 (Tiger)
# 9.x == Mac OSX 10.5 (Leopard)
# 10.x == Mac OSX 10.6 (Snow Leopard)
if (DARWIN_MAJOR_VERSION LESS "8")
message(FATAL_ERROR "Only Mac OSX >= 10.4 are supported !")
endif()
endif()
......@@ -46,22 +46,9 @@ INCLUDE(SlicerFunctionInstallLibrary)
INCLUDE(SlicerFunctionGetGccVersion)
#-----------------------------------------------------------------------------
# Platform check
# Platform checks
#-----------------------------------------------------------------------------
SET(PLATFORM_CHECK true)
if(PLATFORM_CHECK)
# See CMake/Modules/Platform/Darwin.cmake)
# 6.x == Mac OSX 10.2 (Jaguar)
# 7.x == Mac OSX 10.3 (Panther)
# 8.x == Mac OSX 10.4 (Tiger)
# 9.x == Mac OSX 10.5 (Leopard)
# 10.x == Mac OSX 10.6 (Snow Leopard)
if (DARWIN_MAJOR_VERSION LESS "8")
message(FATAL_ERROR "Only Mac OSX >= 10.4 are supported !")
endif()
endif()
INCLUDE(SlicerBlockPlatformCheck)
#-----------------------------------------------------------------------------
# Determine endian type
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment