-
Notifications
You must be signed in to change notification settings - Fork 460
/
SlicerBlockPlatformCheck.cmake
45 lines (41 loc) · 1.36 KB
/
SlicerBlockPlatformCheck.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
################################################################################
#
# Program: 3D Slicer
#
# Copyright (c) Kitware Inc.
#
# See 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()