forked from osmocom/wireshark
Don't set SSE4_2_FLAG to -msse4.2 unless -msse4.2 works.
Change-Id: I54eca86d53dc0e4015a15491b9adfdfe9ef9e346 Reviewed-on: https://code.wireshark.org/review/6703 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
8a0bd92722
commit
41cbbc2f77
|
@ -92,7 +92,9 @@ if(CMAKE_C_COMPILER_ID MATCHES "MSVC")
|
|||
else()
|
||||
message(STATUS "Checking for c-compiler flag: -msse4.2")
|
||||
check_c_compiler_flag(-msse4.2 HAVE_SSE4_2)
|
||||
set(SSE4_2_FLAG "-msse4.2")
|
||||
if(HAVE_SSE4_2)
|
||||
set(SSE4_2_FLAG "-msse4.2")
|
||||
endif()
|
||||
endif()
|
||||
if(HAVE_SSE4_2)
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue