Skip to content
  • Brad King's avatar
    VS: Fix .vcproj and .vfproj file OutputDirectory generation · fa8b30eb
    Brad King authored
    
    
    Teach cmLocalVisualStudio7Generator to set 'OutputDirectory' using the
    same method as is used to set the 'OutputFile' in the generated project
    file.  Also, OutputDirectory only needs to be set for targets that run the
    linker or librarian.  These two changes make the VS 7 OutputDirectory
    consistent with what cmVisualStudio10TargetGenerator generates for OutDir.
    
    Without this, since the VS Intel Fortran plugin for VS >= 10 still uses
    the VS 7 .vfproj file format, when executing test VSGNUFortran using
    Intel Fortran Compiler 15.xx, the following warning is issued just
    before compilation:
    
      TargetPath(...) does not match the Linker's OutputFile property value (...).
      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 %(Link.OutputFile).
    
    Subsequently, an error is reported during linking.
    
    Inspired-by: default avatarVincent Newsum <vynewsum@gmail.com>
    fa8b30eb