From 511cae28aa2f66da50a3c667ccd57307dcc2dbb5 Mon Sep 17 00:00:00 2001
From: Florian Uhlig <f.uhlig@gsi.de>
Date: Thu, 27 Aug 2020 09:18:08 +0200
Subject: [PATCH] Fix linking of tests with debug options

When compiling fairsoft, fairroot and cbmroot with debug options an error
occurred when linking the test executables as described in #1794. The fix
now calls the CMake fucntion in a proper way without escaping some variables.

Closes #1794 @15m
---
 core/data/test/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/data/test/CMakeLists.txt b/core/data/test/CMakeLists.txt
index 44500ea5..e6227412 100644
--- a/core/data/test/CMakeLists.txt
+++ b/core/data/test/CMakeLists.txt
@@ -4,7 +4,7 @@ Macro(CreateGTestExeAndAddTest _testname _includeDirs _linkDirs _sources _depend
   Link_Directories(${_linkDirs})
 
   Add_Executable(${_testname} ${_sources})
-  Target_Link_Libraries(${_testname} "${_dependencies}")
+  Target_Link_Libraries(${_testname} ${_dependencies})
   Gen_Exe_Script(${_testname})
   string(REPLACE ${PROJECT_SOURCE_DIR}
          ${PROJECT_BINARY_DIR} new_path ${CMAKE_CURRENT_SOURCE_DIR}
-- 
GitLab