Skip to content

Commit

Permalink
Bump gcc required version to 4.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sgolemon committed Jul 12, 2013
1 parent 86b0077 commit b010c70
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CMake/HPHPSetup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ endif()
if(CMAKE_COMPILER_IS_GNUCC)
INCLUDE(CheckCSourceCompiles)
CHECK_C_SOURCE_COMPILES("#define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
#if GCC_VERSION < 40400
#error Need GCC 4.4.0+
#if GCC_VERSION < 40600
#error Need GCC 4.6.0+
#endif
int main() { return 0; }" HAVE_GCC_44)
int main() { return 0; }" HAVE_GCC_46)

if(NOT HAVE_GCC_44)
message(FATAL_ERROR "Need at least GCC 4.4")
if(NOT HAVE_GCC_46)
message(FATAL_ERROR "Need at least GCC 4.6")
endif()

endif()
Expand Down

0 comments on commit b010c70

Please sign in to comment.