Skip to content

Commit

Permalink
UNSET(_HAS_CXX0X_FLAG) if gcc is <= 4.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
vigsterkr committed Aug 7, 2013
1 parent fea7732 commit bf73b4a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/CheckCXX11Features.cmake
Expand Up @@ -81,6 +81,9 @@ elseif (_HAS_CXX0X_FLAG)
# TODO: check if there's a version
IF("${CMAKE_CXX_COMPILER_VERSION}" VERSION_GREATER "4.6.3")
set(CXX11_COMPILER_FLAGS "-std=c++0x")
ELSE()
MESSAGE("Your compiler cannot expand a variadic template parameter into a fixed-length argument list.")
UNSET(_HAS_CXX0X_FLAG)
ENDIF()
endif ()

Expand Down

0 comments on commit bf73b4a

Please sign in to comment.