[CMake] Why prefer ADD_SUBDIRECTORY to SUBDIRS ?
John Biddiscombe
biddisco at cscs.ch
Thu Aug 9 12:29:10 EDT 2007
I;m sure you'll get a better answer ...but as I recall, ADD_SUBDIRECTORY
processes the subdir at the time it is called, whereas SUBDIRS pushes
the dirs onto a list which is processed at the end of the current
cmakelists file - this is the old behaviour and some vars are
initialized 'out of order' -or at least in unexpected order
JB
> The online help says that we should use ADD_SUBDIRECTORY rather than
> SUBDIRS, but that SUBDIRS still works.
>
> Does anyone know why we're supposed to prefer ADD_SUBDIRECTORY?
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
--
John Biddiscombe, email:biddisco @ cscs.ch
http://www.cscs.ch/about/BJohn.php
CSCS, Swiss National Supercomputing Centre | Tel: +41 (91) 610.82.07
Via Cantonale, 6928 Manno, Switzerland | Fax: +41 (91) 610.82.82
More information about the CMake
mailing list