aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2018-03-30 14:46:22 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2018-03-30 14:46:43 -0700
commit35bbd4015a906c92b394698779e57fc2945505cc (patch)
treee0af5c6158171edbbc1d46e11502bbede41dbec5
parent0842b6c327f19df6ec6f7bff3909bcf904a5c5c9 (diff)
downloadvcpkg-35bbd4015a906c92b394698779e57fc2945505cc.tar.gz
vcpkg-35bbd4015a906c92b394698779e57fc2945505cc.zip
Improve message for appleclang
-rw-r--r--toolsrc/CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/toolsrc/CMakeLists.txt b/toolsrc/CMakeLists.txt
index 2a1304526..acc12f2b3 100644
--- a/toolsrc/CMakeLists.txt
+++ b/toolsrc/CMakeLists.txt
@@ -4,8 +4,12 @@ project(vcpkg C CXX)
if(CMAKE_COMPILER_IS_GNUXX OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")
set(GCC 1)
elseif(CMAKE_CXX_COMPILER_ID MATCHES "AppleClang")
- if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS_EQUAL 9.0.0)
- message(FATAL_ERROR "Apple clang versions 9 and below do not have support for the C++ Filesystem TS. Please install gcc6 or newer from homebrew (brew install gcc6).")
+ if(NOT VCPKG_ALLOW_APPLE_CLANG)
+ message(FATAL_ERROR
+"Building the vcpkg tool requires support for the C++ Filesystem TS.
+Apple clang versions 9 and below do not have support for it.
+Please install gcc6 or newer from homebrew (brew install gcc6).
+If you would like to try anyway, set VCPKG_ALLOW_APPLE_CLANG.")
else()
set(CLANG 1)
endif()