[Cmake] repeated SUBDIR

Andy Cedilnik andy.cedilnik at kitware.com
Wed Mar 12 10:14:11 EST 2003


Hi Fred,

It is on the list, but I forgot about it. It should be fixed soon.

			Andy

On Wed, 2003-03-12 at 09:44, Wheeler, Frederick W (Research) wrote:
> Currently, if a CMakeLists.txt file has repeated SUBDIR commands, like this,
> 
> SUBDIR( foo )
> SUBDIR( foo )
> 
> then there are various problems, depending on the platform.  Is it
> possible/reasonable to make CMake ignore repeated SUBDIR commands?  A valid
> question would be, why not just remove the repeated SUBDIR from the
> CMakeLists.txt file?  Here is a situation in which that would be tricky.
> Below is part of a CMakeLists.txt file for a build tree shared by several
> projects.  It is convenient to have some builds set
> BUILD_GEIS_PEOPLE_TRACKER and others set BUILD_GEP_TRACKTEST.  However,
> those projects have some common SUBDIRs.  If a build sets both
> BUILD_GEIS_PEOPLE_TRACKER and BUILD_GEP_TRACKTEST, there are repeated SUBDIR
> commands.





More information about the CMake mailing list