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


The following commit(s) were added to refs/heads/master by this push:
     new b7898d9  Fix dependent PkgConfig missing (#545)
b7898d9 is described below

commit b7898d9a4700adbc0d89ec83ce252eb8aec24fb7
Author: Gordon King <[email protected]>
AuthorDate: Tue Aug 17 09:43:51 2021 -0700

    Fix dependent PkgConfig missing (#545)
    
    Signed-off-by: Gordon King <[email protected]>
---
 CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 94b9aff..054dea5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -21,6 +21,10 @@ project(Teaclave C)
 list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
 include(TeaclaveUtils)
 include(ExternalProject)
+find_package(PkgConfig QUIET)
+if (NOT PkgConfig_FOUND)
+  message(FATAL_ERROR "PkgConfig is not found.")
+endif()
 find_package(Git)
 find_package(OpenSSL)
 check_exe_dependencies(rustup pypy)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to