You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@teaclave.apache.org by ms...@apache.org on 2020/05/06 21:43:33 UTC
[incubator-teaclave] 01/03: [cmake] Check Intel SGX SDK version
This is an automated email from the ASF dual-hosted git repository.
mssun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-teaclave.git
commit cc321fbdee66055679c92820f7b10bd7f0b0f3f0
Author: Mingshen Sun <bo...@mssun.me>
AuthorDate: Wed May 6 13:45:16 2020 -0700
[cmake] Check Intel SGX SDK version
---
CMakeLists.txt | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ac30fc8..b318c6f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,6 +7,10 @@ include(ExternalProject)
find_package(Git)
find_package(OpenSSL)
check_exe_dependencies(rustup pypy)
+pkg_check_modules(INTEL_SGX_SDK QUIET libsgx_urts=2.9.101.2)
+if(NOT INTEL_SGX_SDK_FOUND)
+ message(FATAL_ERROR "Intel SGX SDK (version 2.9.1) is not found or version not matched.")
+endif()
# ====== VARIABLES FOR CMAKE -D{VAR}=VAL CONFIGURATION BEGIN ======
set_strvar_from_env_or(SGX_SDK "/opt/sgxsdk" "Path of SGX SDK")
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@teaclave.apache.org
For additional commands, e-mail: commits-help@teaclave.apache.org