MantisBT - CMake
View Issue Details
0011338CMakeCMakepublic2010-10-19 18:132014-06-02 08:37
K. R. Walker 
Stephen Kelly 
normalminoralways
closedfixed 
CMake-2-8 
CMake 3.0CMake 3.0 
0011338: CMake adds CURRENT_SOURCE_DIR to include_directories if there is a VTK project.
CMake adds CMAKE_CURRENT_SOURCE_DIR to the list of include directories if a project named VTK is added to a CMake solution.

cmLocalGenerator.cxx checks for the presence of VTK_SOURCE_DIR (which will be found in the cache if VTK or a project named VTK is part of the solution anywhere). If it's there, then it also looks for VTK_MAJOR_VERSION and VTK_MINOR_VERSION. If those aren't found (as they would not be in a parent scope of VTK, or a project that isn't actually building VTK), then the backwards compatibility "hack" is triggered and includeSourceDir is set to true.

Our current workaround is to change the VTK CMake to FORCE VTK_MAJOR_VERSION and VTK_MINOR_VERSION into the cache to prevent the hack from being encountered.
No tags attached.
Issue History
2010-10-19 18:13K. R. WalkerNew Issue
2010-10-20 11:28Bill HoffmanStatusnew => assigned
2010-10-20 11:28Bill HoffmanAssigned To => Brad King
2011-01-19 11:27Brad KingRelationship addedhas duplicate 0011722
2011-01-19 11:28Brad KingRelationship deletedhas duplicate 0011722
2012-08-13 10:37Brad KingStatusassigned => backlog
2012-08-13 10:37Brad KingNote Added: 0030525
2013-11-02 11:20Stephen KellyNote Added: 0034331
2013-11-02 11:20Stephen KellyTarget Version => CMake 3.0
2013-12-21 05:07Stephen KellyNote Added: 0034846
2013-12-21 05:07Stephen KellyStatusbacklog => resolved
2013-12-21 05:07Stephen KellyFixed in Version => CMake 3.0
2013-12-21 05:07Stephen KellyResolutionopen => fixed
2013-12-21 05:07Stephen KellyAssigned ToBrad King => Stephen Kelly
2014-06-02 08:37Robert MaynardNote Added: 0036062
2014-06-02 08:37Robert MaynardStatusresolved => closed

Notes
(0030525)
Brad King   
2012-08-13 10:37   
Sending issues I'm not actively working on to the backlog to await someone with time for them.

If an issue you care about is sent to the backlog when you feel it should have been addressed in a different manner, please bring it up on the CMake mailing list for discussion. Sign up for the mailing list here, if you're not already on it:

 http://www.cmake.org/mailman/listinfo/cmake [^]

It's easy to re-activate a bug here if you can find a CMake developer or contributor who has the bandwidth to take it on.
(0034331)
Stephen Kelly   
2013-11-02 11:20   
A policy should be added to CMake 3.0.0 to remove this hack.
(0034846)
Stephen Kelly   
2013-12-21 05:07   
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=db7d1112 [^]
(0036062)
Robert Maynard   
2014-06-02 08:37   
Closing resolved issues that have not been updated in more than 4 months.