Remove target option when IPSecMB disabled
[vpp.git] / src / plugins / crypto_ipsecmb / CMakeLists.txt
index 0d08032..86e33a2 100644 (file)
@@ -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")