Skip to content

Commit

Permalink
cmake: GCC 4.8.0 is broken
Browse files Browse the repository at this point in the history
C++11's alignas & constexpr does not work with GCC 4.8.0. This is fixed
in GCC 4.8.1.

Signed-off-by: Matthias Kretz <[email protected]>
  • Loading branch information
mattkretz committed Oct 1, 2015
1 parent 58e5e61 commit 3a57923
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ cmake >= 2.8.3

C++11 Compiler:

* GCC >= 4.8
* GCC >= 4.8.1
* clang >= 3.2
* ICC >= 15.0.3
* Visual Studio (not ready for Vc 1.0 yet)
Expand Down
4 changes: 2 additions & 2 deletions cmake/VcMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ macro(vc_determine_compiler)
endif()

# break build with too old GCC as early as possible.
if(Vc_GCC_VERSION VERSION_LESS 4.8.0)
message(FATAL_ERROR "Vc 1.x requires C++11 support. This requires at least GCC 4.8.0")
if(Vc_GCC_VERSION VERSION_LESS 4.8.1)
message(FATAL_ERROR "Vc 1.x requires C++11 support. This requires at least GCC 4.8.1")
endif()
else()
message(WARNING "Untested/-supported Compiler (${CMAKE_CXX_COMPILER}) for use with Vc.\nPlease fill out the missing parts in the CMake scripts and submit a patch to http://code.compeng.uni-frankfurt.de/projects/vc")
Expand Down

0 comments on commit 3a57923

Please sign in to comment.