From 5945efefa3d38248bb9e34d8c58db9a00c0869de Mon Sep 17 00:00:00 2001 From: Jason Lokerson Date: Tue, 19 Aug 2014 19:20:24 -0700 Subject: [PATCH] Completely disabling AutoNet when USE_LIBCXX is off --- contrib/json11/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/contrib/json11/CMakeLists.txt b/contrib/json11/CMakeLists.txt index f9e851083..fe9ac92ae 100644 --- a/contrib/json11/CMakeLists.txt +++ b/contrib/json11/CMakeLists.txt @@ -1,2 +1,8 @@ +# We need type traits on this platform for all of our enable_if stuff +if(APPLE AND NOT USE_LIBCXX) + message("Cannot build AutoNet without USE_LIBCXX due to extensive use of C++11 facilities") + return() +endif() + add_library(json11 STATIC json11.cpp json11.hpp) set_property(TARGET json11 PROPERTY FOLDER "contrib")