crypto: add '-maes' compile switch
[vpp.git] / src / plugins / crypto_ia32 / CMakeLists.txt
index 850eb4d..cab1c35 100644 (file)
@@ -27,8 +27,8 @@ foreach(VARIANT ${VARIANTS})
   list(GET VARIANT 0 v)
   list(GET VARIANT 1 f)
   set(l crypto_ia32_${v})
-  add_library(${l} OBJECT aes_cbc.c)
+  add_library(${l} OBJECT aes_cbc.c aes_gcm.c)
   set_target_properties(${l} PROPERTIES POSITION_INDEPENDENT_CODE ON)
-  target_compile_options(${l} PUBLIC ${f} -Wall -fno-common)
+  target_compile_options(${l} PUBLIC ${f} -Wall -fno-common -maes)
   target_sources(crypto_ia32_plugin PRIVATE $<TARGET_OBJECTS:${l}>)
 endforeach()