Don't use -msse4.2 with MSVC.
Change-Id: I457d45d9ad05e0eb851e78a7342e666ef9df8ffd Reviewed-on: https://code.wireshark.org/review/5086 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
bba77c3fc0
commit
7a787927a5
|
@ -122,11 +122,23 @@ if (WERROR)
|
|||
)
|
||||
endif()
|
||||
if (HAVE_SSE4_2)
|
||||
set_source_files_properties(
|
||||
${WSUTIL_SSE42_FILES}
|
||||
PROPERTIES
|
||||
COMPILE_FLAGS -msse4.2
|
||||
)
|
||||
#
|
||||
# XXX - we're assuming MSVC supports the SSE 4.2 intrinsics and
|
||||
# that other C compilers support them iff they support the
|
||||
# -msse4.2 flag.
|
||||
#
|
||||
# Perhaps we should check whether we can compile something
|
||||
# that uses them, instead, and do something else to figure
|
||||
# out what compiler flag, if any, we need to pass to the
|
||||
# compiler to compile code that uses them.
|
||||
#
|
||||
if(NOT CMAKE_C_COMPILER_ID MATCHES "MSVC")
|
||||
set_source_files_properties(
|
||||
${WSUTIL_SSE42_FILES}
|
||||
PROPERTIES
|
||||
COMPILE_FLAGS -msse4.2
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
add_library(wsutil ${LINK_MODE_LIB}
|
||||
|
|
Loading…
Reference in New Issue