From 3f53a0a25e506fd759f360d02defe842e69c8283 Mon Sep 17 00:00:00 2001 From: Tom Turner <433367+tturner@users.noreply.github.com> Date: Sun, 11 Jun 2023 15:04:36 +0100 Subject: [PATCH] tools: fixup the CMake custom command for elf-cleaner to correctly find sources Signed-off-by: Tom Turner <433367+tturner@users.noreply.github.com> --- tunnel/tools/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tunnel/tools/CMakeLists.txt b/tunnel/tools/CMakeLists.txt index 490a17556..3397a3c0b 100644 --- a/tunnel/tools/CMakeLists.txt +++ b/tunnel/tools/CMakeLists.txt @@ -31,7 +31,7 @@ add_custom_target(libwg-go.so WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib ) # Strip unwanted ELF sections to prevent DT_FLAGS_1 warnings on old Android versions -file(GLOB ELF_CLEANER_SOURCES elf-cleaner/*.c elf-cleaner/*.cpp) +file(GLOB ELF_CLEANER_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/elf-cleaner/*.c ${CMAKE_CURRENT_SOURCE_DIR}/elf-cleaner/*.cpp) add_custom_target(elf-cleaner COMMENT "Building elf-cleaner" VERBATIM COMMAND cc -O2 -DPACKAGE_NAME="elf-cleaner" -DPACKAGE_VERSION="" -DCOPYRIGHT="" -o "${CMAKE_CURRENT_BINARY_DIR}/elf-cleaner" ${ELF_CLEANER_SOURCES}