Skip to content

Commit c07c1f4

Browse files
author
Roberto Di Remigio
committed
C++11 support detection was turned off for anything that wasn't Intel...
1 parent aad8982 commit c07c1f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/compilers/CheckCXX11Features.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES Intel)
117117
execute_process(COMMAND ${CMAKE_CXX_COMPILER} -dumpversion OUTPUT_VARIABLE ICPC_VERSION)
118118
endif()
119119

120-
if(ICPC_VERSION VERSION_LESS 14.0.0)
120+
if(CMAKE_CXX_COMPILER_ID MATCHES Intel AND ICPC_VERSION VERSION_LESS 14.0.0)
121121
message(STATUS "Buggy compiler support for C++11. Using older standard.")
122122
else()
123123
# Check which compiler flag is valid for the C++11 standard

0 commit comments

Comments
 (0)