From 88257d7d00bcb4101f5a922913ec66ba508a87f5 Mon Sep 17 00:00:00 2001 From: g2flyer Date: Wed, 3 Jan 2024 15:47:40 -0700 Subject: [PATCH] add missing dependencies to prevent add_custom_command race Signed-off-by: g2flyer --- common/crypto/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/crypto/CMakeLists.txt b/common/crypto/CMakeLists.txt index 0397d1fd..e8d3d9b4 100644 --- a/common/crypto/CMakeLists.txt +++ b/common/crypto/CMakeLists.txt @@ -63,6 +63,7 @@ ENDIF() ################################################################################ IF (BUILD_TRUSTED) ADD_LIBRARY(${T_CRYPTO_LIB_NAME} STATIC ${PROJECT_HEADERS} ${PROJECT_SOURCES} ${IAS_HEADERS} ${IAS_SOURCES}) + ADD_DEPENDENCIES(${T_CRYPTO_LIB_NAME} generate-ias-files) SGX_PREPARE_TRUSTED(${T_CRYPTO_LIB_NAME}) TARGET_COMPILE_DEFINITIONS(${T_CRYPTO_LIB_NAME} PRIVATE ${PDO_DEFAULT_SIGCURVE}) @@ -74,6 +75,7 @@ ENDIF() ################################################################################ IF (BUILD_UNTRUSTED) ADD_LIBRARY(${U_CRYPTO_LIB_NAME} STATIC ${PROJECT_HEADERS} ${PROJECT_SOURCES} ${IAS_HEADERS} ${IAS_SOURCES}) + ADD_DEPENDENCIES(${U_CRYPTO_LIB_NAME} generate-ias-files) SGX_PREPARE_UNTRUSTED(${U_CRYPTO_LIB_NAME}) TARGET_COMPILE_DEFINITIONS(${U_CRYPTO_LIB_NAME} PRIVATE ${PDO_DEFAULT_SIGCURVE})