Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[12586] Fixed issue with PCH not working on some versions of GCC

Since some versions of GCC doesn't output patchlevel on -dumpversion the PCH check can fail.
Bug: cmangos/issues#81
  • Loading branch information...
commit 1edf404f2dc0d5cca91e550dec77626c23fd75e8 1 parent fa27056
@sikevux sikevux authored rsa committed
Showing with 6 additions and 6 deletions.
  1. +5 −5 cmake/FindPCHSupport.cmake
  2. +1 −1  src/shared/revision_nr.h
View
10 cmake/FindPCHSupport.cmake
@@ -17,13 +17,13 @@ IF(CMAKE_COMPILER_IS_GNUCXX)
ARGS ${CMAKE_CXX_COMPILER_ARG1} -dumpversion
OUTPUT_VARIABLE gcc_compiler_version)
#MESSAGE("GCC Version: ${gcc_compiler_version}")
- IF(gcc_compiler_version MATCHES "4\\.[0-9]\\.[0-9]")
+ IF(gcc_compiler_version MATCHES "4\\.[0-9](\\.[0-9])?")
SET(PCHSupport_FOUND TRUE)
- ELSE(gcc_compiler_version MATCHES "4\\.[0-9]\\.[0-9]")
- IF(gcc_compiler_version MATCHES "3\\.4\\.[0-9]")
+ ELSE(gcc_compiler_version MATCHES "4\\.[0-9](\\.[0-9])?")
+ IF(gcc_compiler_version MATCHES "3\\.4(\\.[0-9])?")
SET(PCHSupport_FOUND TRUE)
- ENDIF(gcc_compiler_version MATCHES "3\\.4\\.[0-9]")
- ENDIF(gcc_compiler_version MATCHES "4\\.[0-9]\\.[0-9]")
+ ENDIF(gcc_compiler_version MATCHES "3\\.4(\\.[0-9])?")
+ ENDIF(gcc_compiler_version MATCHES "4\\.[0-9](\\.[0-9])?")
SET(_PCH_include_prefix "-I")
View
2  src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
- #define REVISION_NR "12584"
+ #define REVISION_NR "12586"
#endif // __REVISION_NR_H__
Please sign in to comment.
Something went wrong with that request. Please try again.