On 03/11/2016 10:48 AM, Charles Huet wrote: > Here is a prototype that adds a target for each folder the > has the EXCLUDE_FROM_ALL property set.
Is there any reason to limit this to EXCLUDE_FROM_ALL? Why not have a target for every directory with a CMakeLists.txt file? > I am not satisfied with the way I exclude some build targets, > but I could not find the correct way to do it (Install target and such). See cmGlobalUnixMakefileGenerator3::WriteDirectoryRule2 and its call sites for how the Makefile generator decides which targets are part of "all" for each directory. These targets in build.ninja should be equivalent to "cd dir; make" in the Makefile generator. > I used C++11, but I don't know if this is OK in CMake, I'll refactor if not. Please use C++98. Thanks! -Brad -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
