mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-05-13 00:04:14 +08:00
e2ad2ab5d5
git-subtree-dir: Sources/OpenVPNAdapter/Libraries/Vendors/openvpn git-subtree-split: 554d8b88817d3a7b836e78940ed61bb11ed2bd9b
29 lines
1.2 KiB
Diff
29 lines
1.2 KiB
Diff
From 5d31999442a41c154f6c56e91c8fe7705c74e2be Mon Sep 17 00:00:00 2001
|
|
From: Arne Schwabe <arne@rfc2549.org>
|
|
Date: Thu, 28 Dec 2017 00:19:10 +0100
|
|
Subject: [PATCH] Use current cmake directory instead of source root directory
|
|
when exuting config.pl
|
|
|
|
When mdbedtls is added as a subdirectory to another project this will
|
|
call config.pl with the right path If mbedtls is build standalone
|
|
current and root source directory are identical.
|
|
|
|
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
|
|
---
|
|
CMakeLists.txt | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 3e47224ea1..2883eff270 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -31,7 +31,7 @@ find_package(Perl)
|
|
if(PERL_FOUND)
|
|
|
|
# If NULL Entropy is configured, display an appropriate warning
|
|
- execute_process(COMMAND ${PERL_EXECUTABLE} ${CMAKE_SOURCE_DIR}/scripts/config.pl -f ${CMAKE_SOURCE_DIR}/include/mbedtls/config.h get MBEDTLS_TEST_NULL_ENTROPY
|
|
+ execute_process(COMMAND ${PERL_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/config.pl -f ${CMAKE_CURRENT_SOURCE_DIR}/include/mbedtls/config.h get MBEDTLS_TEST_NULL_ENTROPY
|
|
RESULT_VARIABLE result)
|
|
if(${result} EQUAL 0)
|
|
message(WARNING ${NULL_ENTROPY_WARNING})
|