On 07/22/2015 08:25 AM, Erik Sjölund wrote: > I think this warning could be removed: "You have called ADD_LIBRARY > for library foobar without any source files. This typically indicates > a problem with your CMakeLists.txt file "
Yes, since we started allowing sources to be modified after the call this warning no longer makes sense. Instead we need to make sure there is a proper diagnostic if at generate time no SOURCES are available. Even if that is already the case we also need to make sure the test suite covers the errors in Tests/RunCMake somewhere, perhaps in new Tests/RunCMake/{add_library,add_executable} cases. 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