Skip to content

Commit

Permalink
Merge pull request #83 from bcachet/feature/FIX_GCC_APPLE_COMPILATION
Browse files Browse the repository at this point in the history
FIX(BUILD): Compilation with GCC on Apple
  • Loading branch information
pfultz2 committed Oct 7, 2015
2 parents 03fbefd + beeeadc commit e31317a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set (Fit_VERSION_MINOR 3)
include(CheckCXXCompilerFlag)
enable_language(CXX)

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

Expand Down

0 comments on commit e31317a

Please sign in to comment.