Skip to content

Commit

Permalink
add missing dependencies to prevent add_custom_command race
Browse files Browse the repository at this point in the history
Signed-off-by: g2flyer <[email protected]>
  • Loading branch information
g2flyer committed Jan 3, 2024
1 parent 4c76f4e commit 7b747af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/crypto/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand All @@ -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})
Expand Down

0 comments on commit 7b747af

Please sign in to comment.