Latest commit 3fe9121 Jul 27, 2021 History
We have several cmake targets created with
ADD_CUSTOM_TARGET(target_name DEPENDS <output from some custom command>)

These custom targets do not produce any output, they simply function
as "dependency glue" between real/ordinary targets, and output from
custom commands, created with
ADD_CUSTOM_COMMAND(OUTPUT <output file> COMMAND <how to produce it>)

The visual studio generator, running msbuild, complains with

Warning MSB8065: File not created
Custom build for ... succeeded, but specified output ... has not been created.

The fix is to add
CMAKE -E touch cmakefiles/<name of custom target>
to the COMMAND list of custom targets.

Change-Id: I36ff3d1dbfd960c65da3487899b9fa338ae2d364
9 contributors

Users who have contributed to this file

@ivo-roylev @gkodinov @vaintroub @snarkedi @lkotula @harinvadodaria @bjornmu @kboortz @jhauglid