From 1a9c624fcea3e2cd6fc1aa756e6ae8e2d57a9c2e Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Wed, 26 Feb 2020 19:45:22 +0100 Subject: [PATCH] Revert "tests: Use parent module includes when used as a submodule" This reverts commit 120d571e8e835afde4a5c31fdc26c2452c0b54d7. Conflicts: * tests/CMakeLists.txt: * target_include_directories: the instruction whose addition is to be reverted has changed. Remove what is there now. --- tests/CMakeLists.txt | 4 ---- tests/Makefile | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 6b1679c5e..49bff1325 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -50,10 +50,6 @@ function(add_test_suite suite_name) include_directories(${CMAKE_CURRENT_SOURCE_DIR}) add_executable(test_suite_${data_name} test_suite_${data_name}.c) target_link_libraries(test_suite_${data_name} ${libs}) - target_include_directories(test_suite_${data_name} - PUBLIC ${CMAKE_SOURCE_DIR}/include/ - PUBLIC ${CMAKE_SOURCE_DIR}/crypto/include/ - PUBLIC ${CMAKE_SOURCE_DIR}/crypto/library/) if(${data_name} MATCHES ${SKIP_TEST_SUITES_REGEX}) message(STATUS "The test suite ${data_name} will not be executed.") diff --git a/tests/Makefile b/tests/Makefile index 15564c55e..e74bf9548 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -6,8 +6,7 @@ CFLAGS ?= -O2 WARNING_CFLAGS ?= -Wall -Wextra LDFLAGS ?= -CRYPTO_INCLUDES ?= -I../include -LOCAL_CFLAGS = $(WARNING_CFLAGS) $(CRYPTO_INCLUDES) -I../library -D_FILE_OFFSET_BITS=64 +LOCAL_CFLAGS = $(WARNING_CFLAGS) -I../include -I../library -D_FILE_OFFSET_BITS=64 LOCAL_LDFLAGS = -L../library \ -lmbedtls$(SHARED_SUFFIX) \ -lmbedx509$(SHARED_SUFFIX) \