MantisBT - CMake
View Issue Details
0009173CMakeCMakepublic2009-06-17 12:472009-06-17 13:40
tyler 
Brad King 
normalminoralways
closedfixed 
CMake-2-6 
 
0009173: create policy for change to add_subdirectory() behavior
CMake 2.6.4 introduced a "bug fix" that prevents add_subdirectory() from being called on the same source directory multiple times.

For at least two of us (Floca Ralf Omar and I), this bug fix breaks our existing CMake scripts.

I propose that a policy be created so that users like Ralf and I can disable the new add_subdirectory() behavior until we have time to update our scripts to use a different strategy that does not rely on adding subdirectories multiple times.

Brad King agreed that this behavior could be controlled with a policy:

http://www.cmake.org/pipermail/cmake/2009-June/030193.html [^]

The rest of that thread has good discussion about the nature of the problem and why we want this policy.

Thanks,
tyler
No tags attached.
Issue History
2009-06-17 12:47tylerNew Issue
2009-06-17 12:54Brad KingStatusnew => assigned
2009-06-17 12:54Brad KingAssigned To => Brad King
2009-06-17 13:40Brad KingNote Added: 0016734
2009-06-17 13:40Brad KingNote Added: 0016735
2009-06-17 13:40Brad KingStatusassigned => closed
2009-06-17 13:40Brad KingResolutionopen => fixed

Notes
(0016734)
Brad King   
2009-06-17 13:40   
ENH: Create CMP0013 to disallow duplicate dirs
/cvsroot/CMake/CMake/Source/cmMakefile.cxx,v <-- Source/cmMakefile.cxx
new revision: 1.509; previous revision: 1.508
/cvsroot/CMake/CMake/Source/cmMakefile.h,v <-- Source/cmMakefile.h
new revision: 1.255; previous revision: 1.254
/cvsroot/CMake/CMake/Source/cmPolicies.cxx,v <-- Source/cmPolicies.cxx
new revision: 1.39; previous revision: 1.38
/cvsroot/CMake/CMake/Source/cmPolicies.h,v <-- Source/cmPolicies.h
new revision: 1.24; previous revision: 1.23
(0016735)
Brad King   
2009-06-17 13:40   
I've scheduled this for 2.6.5.