We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f9048e commit 95ea987Copy full SHA for 95ea987
cmake/Modules/FindAVX.cmake
@@ -142,7 +142,7 @@ MACRO(CHECK_SSE lang type flags)
142
IF(NOT ${lang}_${type}_FOUND)
143
SET(CMAKE_REQUIRED_FLAGS ${__FLAG})
144
IF(lang STREQUAL "CXX")
145
- CHECK_C_SOURCE_COMPILES("${${type}_CODE}" ${lang}_HAS_${type}_${__FLAG_I})
+ CHECK_CXX_SOURCE_COMPILES("${${type}_CODE}" ${lang}_HAS_${type}_${__FLAG_I})
146
ELSE()
147
CHECK_C_SOURCE_COMPILES("${${type}_CODE}" ${lang}_HAS_${type}_${__FLAG_I})
148
ENDIF()
0 commit comments