Match for contents of WIRESHARK_SIMD_FLAGS only if non-empty

Change-Id: I99e15b237c74783b455461ce58ba32f1f8202990
Reviewed-on: https://code.wireshark.org/review/2208
Reviewed-by: Jörg Mayer <jmayer@loplof.de>
This commit is contained in:
Joerg Mayer 2014-06-14 10:48:22 +02:00 committed by Jörg Mayer
parent b70bb4654a
commit 30480da87a
1 changed files with 6 additions and 5 deletions

View File

@ -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)