Commit 46551106 authored by Stefanie Dukovac's avatar Stefanie Dukovac
Browse files

Modified target build order

parent d8b73c08
......@@ -142,7 +142,7 @@ add_custom_target(TrustedEdger8r
COMMENT "GEN => Enclave_t.h"
)
add_custom_target(SignEnclave
add_custom_target(SignEnclave ALL
COMMAND ${SGX_ENCLAVE_SIGNER} sign -key ${ENCLAVE_DIR}/Enclave_private.pem -enclave lib${Enclave_Name}.so -out lib${Signed_Enclave_Name}.so -config ${Enclave_Config_File}
# WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMENT "SIGN => libenclave.signed.so"
......@@ -167,7 +167,7 @@ target_link_libraries(${App_Name} ${Urts_Library_Name} ${CMAKE_THREAD_LIBS_INIT}
target_link_libraries(${Enclave_Name} ${Enclave_Link_Flags})
# Run Edger8r before builds
add_dependencies(${App_Name} TrustedEdger8r UntrustedEdger8r)
add_dependencies(${App_Name} ${Enclave_Name})
add_dependencies(${App_Name} SignEnclave)
add_dependencies(${App_Name} UntrustedEdger8r ${Enclave_Name})
add_dependencies(${Enclave_Name} TrustedEdger8r)
add_dependencies(SignEnclave ${Enclave_Name})
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment