From d519583ae301eb0ee1b1bb67f5e9a3a38877dab0 Mon Sep 17 00:00:00 2001 From: Darryl Green Date: Wed, 6 Feb 2019 13:41:54 +0000 Subject: [PATCH] Run generate_psa_constants.py in cmake builds --- programs/psa/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/programs/psa/CMakeLists.txt b/programs/psa/CMakeLists.txt index 37038c0de..ab11fbc90 100644 --- a/programs/psa/CMakeLists.txt +++ b/programs/psa/CMakeLists.txt @@ -4,6 +4,8 @@ target_link_libraries(crypto_examples mbedtls) add_executable(key_ladder_demo key_ladder_demo.c) target_link_libraries(key_ladder_demo mbedtls) +execute_process(COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/../../scripts/generate_psa_constants.py) + add_executable(psa_constant_names psa_constant_names.c) target_link_libraries(psa_constant_names mbedtls)