Merge topic 'fix-qcc-compiler-id'

9c9bc712 QNX: Fix detection of QCC compiler id (#15349)
This commit is contained in:
Brad King 2015-01-16 09:43:59 -05:00 committed by CMake Topic Stage
commit 36428fc527
3 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
#endif
#ifdef __QNXNTO__
char const* qnxnto = "INFO" ":" "qnxnto";
char const* qnxnto = "INFO" ":" "qnxnto[]";
#endif
@CMAKE_C_COMPILER_ID_PLATFORM_CONTENT@

View File

@ -17,7 +17,7 @@ char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
#endif
#ifdef __QNXNTO__
char const* qnxnto = "INFO" ":" "qnxnto";
char const* qnxnto = "INFO" ":" "qnxnto[]";
#endif
@CMAKE_CXX_COMPILER_ID_PLATFORM_CONTENT@

View File

@ -440,7 +440,7 @@ function(CMAKE_DETERMINE_COMPILER_ID_CHECK lang file)
string(REGEX REPLACE "^0+([0-9])" "\\1" SIMULATE_VERSION "${CMAKE_MATCH_1}")
string(REGEX REPLACE "\\.0+([0-9])" ".\\1" SIMULATE_VERSION "${SIMULATE_VERSION}")
endif()
if("${info}" MATCHES "INFO:qnxnto")
if("${info}" MATCHES "INFO:qnxnto\\[\\]")
set(COMPILER_QNXNTO 1)
endif()
endforeach()