Skip to content

Commit

Permalink
Merge pull request #84 from bcachet/feature/FIX_GCC_APPLE_COMPILATION…
Browse files Browse the repository at this point in the history
…_TESTING_FLAGS

REF(BUILD): On Apple, check std=libc++ flags to ensure its valid
  • Loading branch information
pfultz2 committed Oct 7, 2015
2 parents e31317a + 2530d91 commit b934520
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ set (Fit_VERSION_MINOR 3)
include(CheckCXXCompilerFlag)
enable_language(CXX)

if(CMAKE_HOST_APPLE AND (NOT CMAKE_COMPILER_IS_GNUCXX))
if(CMAKE_HOST_APPLE)
check_cxx_compiler_flag("-stdlib=libc++" COMPILER_HAS_CXX_FLAG_libcxx)
if(COMPILER_HAS_CXX_FLAG_libcxx)
list(APPEND CXX_EXTRA_FLAGS -stdlib=libc++)
endif()
endif()

set(ENABLE_CXXFLAGS_TO_CHECK
Expand Down

0 comments on commit b934520

Please sign in to comment.