Commit c6cfa1b6 authored by jcfr's avatar jcfr

COMP: Fix configuration on macOS

This commit fixes a regression introduced in r28000 (COMP: Update build
system removing support for C++98/Qt4/VTK7).

Following commit r28000 the ivar "required_deployment_target" was never
set because the module SlicerInitializeOSXVariables CMake  module is
included from the top-level CMakeLists.txt before the "project()" statement
and in that case Slicer_SOURCE_DIR was not defined too.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@28009 3bd1e089-480b-0410-8dfb-8563597acbee
parent 74eaac4e
......@@ -124,12 +124,11 @@ if(APPLE)
endif()
endif()
if(DEFINED Slicer_SOURCE_DIR)
# Require minimum deployment target of 10.9. In 10.9 libc++ replaces libstdc++
# as the default runtime. Requiring this minimum ensures that all libraries
# use libc++.
set(required_deployment_target "10.9")
endif()
# Require minimum deployment target of 10.9. In 10.9 libc++ replaces libstdc++
# as the default runtime. Requiring this minimum ensures that all libraries
# use libc++.
set(required_deployment_target "10.9")
if(CMAKE_OSX_DEPLOYMENT_TARGET VERSION_LESS ${required_deployment_target})
message(FATAL_ERROR "CMAKE_OSX_DEPLOYMENT_TARGET must be ${required_deployment_target} or greater.")
endif()
......
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