From 9b1033e925a32d500776ca451c2f015abd0bb45c Mon Sep 17 00:00:00 2001 From: Fabian Schiebel Date: Sat, 9 Dec 2023 11:10:36 +0100 Subject: [PATCH] The LLVMBasedICFGGlobCtorDtorTest needs LLVMLinker, so we better link explicitly, instead of relying on transitive linkage --- unittests/PhasarLLVM/ControlFlow/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/unittests/PhasarLLVM/ControlFlow/CMakeLists.txt b/unittests/PhasarLLVM/ControlFlow/CMakeLists.txt index 04cb11d94..656751ae9 100644 --- a/unittests/PhasarLLVM/ControlFlow/CMakeLists.txt +++ b/unittests/PhasarLLVM/ControlFlow/CMakeLists.txt @@ -12,6 +12,7 @@ set(ControlFlowSources LLVMBasedICFGSerializationTest.cpp ) +set(LLVM_LINK_COMPONENTS Linker) # The CtorDtorTest needs the linker foreach(TEST_SRC ${ControlFlowSources}) add_phasar_unittest(${TEST_SRC}) endforeach(TEST_SRC)