Skip to content

Commit

Permalink
Don't use -std compiler flag if CMAKE_CXX_STANDARD is specified (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Aug 5, 2016
1 parent a5d0adf commit 12a6027
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions support/cmake/cxx11.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ if (FMT_USE_CPP11)
endif ()
endif ()

if (CMAKE_CXX_STANDARD)
# Don't use -std compiler flag if CMAKE_CXX_STANDARD is specified.
set(CPP11_FLAG )
endif ()

set(CMAKE_REQUIRED_FLAGS ${CPP11_FLAG})

# Check if variadic templates are working and not affected by GCC bug 39653:
Expand Down

0 comments on commit 12a6027

Please sign in to comment.