From b451674f88e4e83c904379f64b1bb3438413c1e4 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Tue, 28 May 2013 14:01:17 -0700 Subject: [PATCH] Not using libc++ on FreeBSD. Fixes #349. --- cpp/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 4f0e2ddb..14208d4a 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -58,7 +58,8 @@ if ( CMAKE_CXX_COMPILER_ID STREQUAL "Clang" ) set( COMPILER_IS_CLANG true ) # The Travis CI build machines don't have libc++ installed - if ( NOT DEFINED ENV{TRAVIS} ) + # Also, FreeBSD complains about this too. See issue #349. + if ( NOT DEFINED ENV{TRAVIS} AND NOT SYSTEM_IS_FREEBSD ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++" ) endif() endif()