MantisBT - CMake
View Issue Details
0013718CMakeCMakepublic2012-11-20 09:152016-06-10 14:31
Amit Kulkarni 
Kitware Robot 
normalminoralways
closedmoved 
OpenBSDOpenBSD5.2 (-current)
CMake 2.8.10.1 
 
0013718: CMake does not preprocess out conditional includes while scanning dependencies
> Looks like opencv picks up ansidecl.h during configure and later
> tries to use it. However, since there is no explicit dependency,
> the file can go away anytime and if it does, the build fails.
>
> (ansidecl.h is around if devel/gdb happens to be installed.)

Refer to http://marc.info/?l=openbsd-ports&m=135336077026128&w=2 [^]

A casual google search turns up

http://git.yoctoproject.org/cgit.cgi/poky/plain/meta/recipes-core/libxml/libxml2/ansidecl.patch [^]

http://www.paraview.org/pipermail/paraview/2008-March/007473.html [^]

Can this issue be fixed please, instead of various patches to be made to remove ansidecl.h in many other projects?

Thanks
No tags attached.
related to 0011985closed Kitware Robot CMake scanner doesn't extract dependencies of C and C++ files correctly 
Issue History
2012-11-20 09:15Amit KulkarniNew Issue
2012-11-20 09:27Brad KingNote Added: 0031621
2012-11-20 09:27Brad KingStatusnew => backlog
2012-11-20 09:27Brad KingSummaryCMake picks up ansidecl.h during configure => CMake does not preprocess out conditional includes while scanning dependencies
2012-11-20 09:27Brad KingRelationship addedrelated to 0011985
2013-03-13 10:17Brad KingNote Added: 0032600
2016-06-10 14:28Kitware RobotNote Added: 0042154
2016-06-10 14:28Kitware RobotStatusbacklog => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0031621)
Brad King   
2012-11-20 09:27   
This is similar to issue 0011985.

The Fortran dependency scanner:

 http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmDependsFortran.cxx;hb=v2.8.10.1 [^]

does some preprocessing to handle conditional blocks. This would need to be ported to cmDependsC to address this issue. Sending to backlog awaiting a volunteer.
(0032600)
Brad King   
2013-03-13 10:17   
As pointed out in this discussion:

 http://thread.gmane.org/gmane.comp.programming.tools.cmake.user/45828/focus=45865 [^]

a related problem is that cmDependsFortran does not account for per-source definitions.
(0042154)
Kitware Robot   
2016-06-10 14:28   
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.