[CMake] Separating spaces are escaped by JOIN generator expression
Dakeryas
mrdakeryas at gmail.com
Mon Aug 5 16:56:26 EDT 2019
I am facing the exact same issue when when joining libraries from a target
for some CMake function defined by the Cern ROOT library
(ROOT_GENERATE_DICTIONARY in that case).I am defining a list:list(APPEND
DICTIONARY_INCLUDES "
-I$<JOIN:$<TARGET_PROPERTY:MyLIBRARY,INTERFACE_INCLUDE_DIRECTORIES>,
-I>")which is then passed to the ROOT function. I can see from the build
error that all the includes have a backslash appended, i.e.:...
-I/home/user/lib1/include/\ -I/home/user/lib2/include/\ -I...The
BUILD_INTERFACE vs INSTALL_INTERFACE is respected, everything seems to work
aside from these nasty backlashes... If I save the command manually after
seeing the error and perform a string replacement to remove the backlashes,
I get the desired result.Is there any fix five years later?
--
Sent from: http://cmake.3232098.n2.nabble.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190805/f2b46f8f/attachment.html>
More information about the CMake
mailing list