Add -msse4.2 to the compiler flags if it's supported.
Change-Id: I354c5141f8fbe306a71395622effeb97df97f3ce Reviewed-on: https://code.wireshark.org/review/6042 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
499a7d0f0a
commit
c01bad2c90
|
@ -417,6 +417,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)
|
||||
if(HAVE_SSE4_2)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse4.2")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
check_c_compiler_flag(-fvisibility=hidden FVHIDDEN)
|
||||
|
|
Loading…
Reference in New Issue