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 the custom target for interface libraries and set the sources to the target directly #61

Closed Knitschi closed 3 years ago

Knitschi commented 3 years ago

Since version 3.19 cmake allows setting sources to INTERFACE targets. CPFCMake used to work around this problem by adding an extra custom target. This ticket is about checking if the custom target can be removed now. This may not be possible if it is also used to hold properties that not be possible to set on the interface target.

Knitschi commented 3 years ago

Without the custom file container target the files of the interface library do not appear in a visual studio solution. For that reason I leave it in there for now.

Maybe at some point using Visual Studios CMake mode will make more sense. Then we can remove the helper target.