summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-12-24 15:36:55 -0800
committerGuy Harris <guy@alum.mit.edu>2014-12-24 23:38:24 +0000
commitc01bad2c902ce412f4c0b8d581e7be64872bdb5a (patch)
treea8922be09c89afcca47e8e37cf87e034e70b0669
parent499a7d0f0a2f428e5e066b2386f54ed6c7027602 (diff)
downloadwireshark-c01bad2c902ce412f4c0b8d581e7be64872bdb5a.tar.gz
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>
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
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)