Not using libc++ on FreeBSD.

Fixes #349.
This commit is contained in:
Strahinja Val Markovic 2013-05-28 14:01:17 -07:00
parent f838973d54
commit b451674f88

View File

@ -58,7 +58,8 @@ if ( CMAKE_CXX_COMPILER_ID STREQUAL "Clang" )
set( COMPILER_IS_CLANG true ) set( COMPILER_IS_CLANG true )
# The Travis CI build machines don't have libc++ installed # 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++" ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++" )
endif() endif()
endif() endif()