Skip to content
Snippets Groups Projects
Commit 511cae28 authored by Administrator's avatar Administrator
Browse files

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
parent dace0b81
No related branches found
No related tags found
No related merge requests found
......@@ -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}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment