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

Remove workaround for config dependent custom targets #62

Closed Knitschi closed 3 years ago

Knitschi commented 3 years ago

As of cmake version 3.20 add_custom_command() supports generator expressions in its output. The allows us to remove the loops over configurations that where added to work arround this limitation and replace them with generator expressions.

Knitschi commented 3 years ago

Strangely enought the feature was not used that much after all. Using it allowed to remove the extra file generation of the "argument file" in cpfAddConfigurationDependendCommand(). This is only used for the dll deployment to the build-tree and for the OpenCppCoverage target.