File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- INCLUDE (CheckCSourceCompiles )
2- INCLUDE (CheckCXXSourceCompiles )
1+ INCLUDE (CheckCSourceRuns )
2+ INCLUDE (CheckCXXSourceRuns )
33
44SET (AVX512_CODE "
55 #include <stdint.h>
@@ -34,9 +34,9 @@ MACRO(CHECK_SSE lang type flags)
3434 IF (NOT ${lang} _${type} _FOUND)
3535 SET (CMAKE_REQUIRED_FLAGS ${__FLAG} )
3636 IF (lang STREQUAL "CXX" )
37- CHECK_CXX_SOURCE_COMPILES ("${${type} _CODE}" ${lang} _HAS_${type} _${__FLAG_I} )
37+ CHECK_CXX_SOURCE_RUNS ("${${type} _CODE}" ${lang} _HAS_${type} _${__FLAG_I} )
3838 ELSE ()
39- CHECK_C_SOURCE_COMPILES ("${${type} _CODE}" ${lang} _HAS_${type} _${__FLAG_I} )
39+ CHECK_C_SOURCE_RUNS ("${${type} _CODE}" ${lang} _HAS_${type} _${__FLAG_I} )
4040 ENDIF ()
4141 IF (${lang} _HAS_${type} _${__FLAG_I} )
4242 SET (${lang} _${type} _FOUND TRUE CACHE BOOL "${lang} ${type} support" )
You can’t perform that action at this time.
0 commit comments