From 70e724559a0c4e481b7626083db088823b5129e2 Mon Sep 17 00:00:00 2001 From: Amaury Chamayou Date: Thu, 29 Apr 2021 20:50:51 +0100 Subject: [PATCH] Fix cmake to work with OE >=0.13 (#17) Signed-off-by: Amaury Chamayou --- library/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt index f5030d8..e95c951 100644 --- a/library/CMakeLists.txt +++ b/library/CMakeLists.txt @@ -47,11 +47,14 @@ add_custom_target(dummy ALL DEPENDS libcurl) target_link_libraries(libcurl openenclave::oeenclave + openenclave::oecryptombedtls openenclave::oelibcxx openenclave::oehostsock openenclave::oehostresolver ) +target_include_directories(libcurl PUBLIC ${OE_INCLUDEDIR}/openenclave/3rdparty) + target_sources(libcurl PRIVATE stubs_undefined.c) install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/curl/include DESTINATION include/oecurl)