Skip to content

Commit 90ee486

Browse files
committed
Bug#19187034: ADD COMPILER VERSION CHECKS TO CMAKE
Post-push fix: Rename CMake variable used to hold result of SunStudio version check to avoid conflict with variable used in mysql_version.cmake
1 parent c326b69 commit 90ee486

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cmake/os/SunOS.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ IF(NOT FORCE_UNSUPPORTED_COMPILER)
3434
RESULT_VARIABLE result
3535
)
3636
STRING(REGEX MATCH "CC: Sun C\\+\\+ 5\\.([0-9]+)" VERSION_STRING ${stderr})
37-
SET(MINOR_VERSION ${CMAKE_MATCH_1})
38-
IF(${MINOR_VERSION} LESS 11)
37+
SET(CC_MINOR_VERSION ${CMAKE_MATCH_1})
38+
IF(${CC_MINOR_VERSION} LESS 11)
3939
MESSAGE(FATAL_ERROR "SunStudio 12u2 or newer is required!")
4040
ENDIF()
4141
ELSE()

configure.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@ IF(CMAKE_SYSTEM_NAME MATCHES "SunOS" AND
199199
ENDIF()
200200

201201
STRING(REGEX MATCH "CC: Sun C\\+\\+ 5\\.([0-9]+)" VERSION_STRING ${stderr})
202-
SET(MINOR_VERSION ${CMAKE_MATCH_1})
202+
SET(CC_MINOR_VERSION ${CMAKE_MATCH_1})
203203

204-
IF(${MINOR_VERSION} EQUAL 13)
204+
IF(${CC_MINOR_VERSION} EQUAL 13)
205205
SET(STLPORT_SUFFIX "lib/compilers/stlport4")
206206
IF(SIZEOF_VOIDP EQUAL 8 AND CMAKE_SYSTEM_PROCESSOR MATCHES "sparc")
207207
SET(STLPORT_SUFFIX "lib/compilers/stlport4/sparcv9")

0 commit comments

Comments
 (0)