Missing semicolons in config-dependent ADDITIONAL_LIBRARY_DEPENDENCIES lead to linker errors.
bigla opened this issue · 0 comments
bigla commented
The missing semicolon after SomeLIB (i guess because it is the "last one in the list")
string(CONCAT ADDITIONAL_LIBRARY_DEPENDENCIES
"$<$<CONFIG:Release>:"
"SomeLIB"
">"
"someotherlib;"
leads to the error:
LINK : fatal error LNK1181: cannot open input file 'SomeLIBsomeotherlib.lib'
because of how CMake seems to handle (quoted) list items.
Solution: put semicolons for every element in the list (even if it is the last).