diff options
-rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index da74a2536f..f9fcf960a3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -386,11 +386,12 @@ foreach(THIS_FLAG ${WIRESHARK_SIMD_TESTS}) endif() endforeach() -string(REGEX MATCH -msse4.2 - HAVE_SSE4_2 - ${WIRESHARK_SIMD_FLAGS} -) -message( STATUS "HAVE_SSE4_2: ${HAVE_SSE4_2}" ) +if ( ${WIRESHARK_SIMD_FLAGS} ) + string(REGEX MATCH -msse4.2 + HAVE_SSE4_2 + ${WIRESHARK_SIMD_FLAGS} + ) +endif() check_c_compiler_flag(-fvisibility=hidden FVHIDDEN) if(FVHIDDEN) |