Remove target option when IPSecMB disabled
@@ -33,9 +33,8 @@ if(IPSECMB_INCLUDE_DIR AND IPSECMB_LIB)
${IPSECMB_LINK_FLAGS}
)
+ target_compile_options(crypto_ipsecmb_plugin PRIVATE "-march=silvermont")
message(STATUS "Intel IPSecMB found: ${IPSECMB_INCLUDE_DIR}")
else()
message(STATUS "Intel IPSecMB not found")
endif()
-
-target_compile_options(crypto_ipsecmb_plugin PRIVATE "-march=silvermont")
