Skip to content

VSGen: TargetExt for VFort OBJECT libraries fixed

For object libraries, Visual Fortran projects generated by CMake raise the following warning:

test: warning: TargetPath(...\test) does not match the Library's OutputFile property value (...\test.lib). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Lib.OutputFile).

This is because the OutputFile is adjusted by CMake's VS generator to append a .lib for object libraries, but TargetExt isn't handled in the same fashion. However, as far as I can tell, the warning has no effect on functionality.

Merge request reports

Loading