Knitschi / CPFCMake

A component of the CMakeProjectFramework. It provides the CMake code that implements a CI-pipeline.
MIT License
2 stars 2 forks source link

Find out if we can simplify or get rid of the config-dependent command and argument file mechanism. #39

Open Knitschi opened 5 years ago

Knitschi commented 5 years ago

The mechanism for executing commands that have a configuration specific output is complicated and bug-prone. Especcially the escaping of special characters is hard to get right. The mechanism was implemented as a workaround for the problem that add_custom_command() does not support generator expressions in its OUTPUT argument. Maybe we can use mitigate the problem by.

If cmake should implement generator expressions in OUTPUT we may able to get rid of this completely.