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. The fix involves setting 'OutputDirectory' using the same method as is used to set the 'OutputFile' in the generated project file. Signed-off-by: Vincent Newsum <vynewsum at gmail dot com <http://public.kitware.com/mailman/listinfo/cmake-developers>> --- Source/cmLocalVisualStudio7Generator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index 914df5f..a071492 100644 --- a/Source/cmLocalVisualStudio7Generator.cxx +++ b/Source/cmLocalVisualStudio7Generator.cxx @@ -670,7 +670,7 @@ void cmLocalVisualStudio7Generator::WriteConfiguration(std::ostream& fout, fout << "\t\t<Configuration\n" << "\t\t\tName=\"" << configName << "|" << gg->GetPlatformName() << "\"\n" - << "\t\t\tOutputDirectory=\"" << configName << "\"\n"; + << "\t\t\tOutputDirectory=\"" << target.GetDirectory(configName) << "\"\n"; // This is an internal type to Visual Studio, it seems that: // 4 == static library // 2 == dll -- 1.9.4.msysgit.0
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
