On 05/28/2016 01:15 PM, jerry....@web.de wrote:
>   "-I$<JOIN:$<TARGET_PROPERTY:dummy,INCLUDE_DIRECTORIES>, -I>"

This tells CMake to generate a single argument consisting of the
entire expanded value.  We have no syntax to expand lists into
multiple command line arguments after evaluation of generator
expressions.  Without the quotes the "$<" and ">" parts appear
in different arguments to add_custom_command and so it is not
recognized as a generator expression.

It is not currently possible to do what you are trying to do.
You'll need to use file(GENERATE) to produce a script holding
the desired command instead.  Then launch the script as the
custom target's command.

-Brad

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to