From c01bad2c902ce412f4c0b8d581e7be64872bdb5a Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 24 Dec 2014 15:36:55 -0800 Subject: 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 --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index a70ba633dc..995d0847f1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) -- cgit v1.2.3