From 6645213edd1607db195cf16d6555ef1e1624b7df Mon Sep 17 00:00:00 2001 From: Franjo Hornung <31935516+fhornung@users.noreply.github.com> Date: Tue, 2 Jul 2024 20:57:30 -0700 Subject: [PATCH] Update CMakeLists.txt In order to prevent the following: CMake Error at IDEHelper/CMakeLists.txt:186 (add_library): Target "IDEHelper" links to item "-lLLVM-18 " which has leading or trailing whitespace. This is now an error according to policy CMP0004. Noticed on Arch Linux. --- IDEHelper/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IDEHelper/CMakeLists.txt b/IDEHelper/CMakeLists.txt index 8f134496..dc8e3160 100644 --- a/IDEHelper/CMakeLists.txt +++ b/IDEHelper/CMakeLists.txt @@ -177,7 +177,7 @@ if (LLVM_FOUND) include_directories(${LLVM_INCLUDE_DIRS}) add_definitions(${LLVM_DEFINITIONS}) - set(TARGET_LIBS_OS "-lLLVM-18 ${LLVM_SYSTEM_LIBS}") + set(STRIP ${TARGET_LIBS_OS} "-lLLVM-18 ${LLVM_SYSTEM_LIBS}") else() message(FATAL_ERROR "LLVM not found") endif()