MantisBT - CMake
View Issue Details
0010174CMakeCMakepublic2010-01-21 06:072016-06-10 14:31
Ivan S. Lyapunov 
Bill Hoffman 
normalmajoralways
closedmoved 
CMake-2-8 
 
0010174: Wrong project settings generation for Visual Studio 2008 with MACRO_ADD_FILE_DEPENDENCIES
Qt4 MACRO_ADD_FILE_DEPENDENCIES can produce bad projects headers option, so project may does not compile. attached sample project shows the "C/C++ Compiler Tool" for BarClass1.h in generated solution. solution build will not be successful due to crazy behavior described at
http://blogs.msdn.com/vcblog/archive/2009/07/21/linker-warning-lnk4221-and-some-tips-to-avoid-it.aspx [^]

to reproduce the bug just run build.cmd in build directory and try to compile solution in Visual Studio IDE (not nmake!). we use provided patch to temporary fix solution build but the reals solution is to fix MACRO_ADD_FILE_DEPENDENCIES because project settings looks good without it.
No tags attached.
zip project.zip (3,511) 2010-01-21 06:07
https://public.kitware.com/Bug/file/2790/project.zip
Issue History
2010-01-21 06:07Ivan S. LyapunovNew Issue
2010-01-21 06:07Ivan S. LyapunovFile Added: project.zip
2010-01-21 08:36Bill HoffmanStatusnew => assigned
2010-01-21 08:36Bill HoffmanAssigned To => Clinton Stimpson
2010-04-08 19:00Clinton StimpsonAssigned ToClinton Stimpson => Bill Hoffman
2010-04-08 19:01Clinton StimpsonNote Added: 0020107
2011-03-04 07:30Ivan S. LyapunovNote Added: 0025667
2013-09-11 05:26Ivan S. LyapunovNote Added: 0033796
2016-06-10 14:27Kitware RobotNote Added: 0041642
2016-06-10 14:27Kitware RobotStatusassigned => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0020107)
Clinton Stimpson   
2010-04-08 19:01   
The patch inside the project.zip is for cmLocalVisualStudio7Generator.cxx.
(0025667)
Ivan S. Lyapunov   
2011-03-04 07:30   
still buggy in 2.8.4 even with
SET_SOURCE_FILES_PROPERTIES PROPERTIES OBJECT_DEPENDS
(0033796)
Ivan S. Lyapunov   
2013-09-11 05:26   
any updates? 3 years old already :D
(0041642)
Kitware Robot   
2016-06-10 14:27   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.