The following issue has been SUBMITTED. 
====================================================================== 
https://public.kitware.com/Bug/view.php?id=15847 
====================================================================== 
Reported By:                Erik Sjölund
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15847
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-11-16 16:28 EST
Last Modified:              2015-11-16 16:28 EST
====================================================================== 
Summary:                    ADD_LIBRARY without any sources generates an
unnecessary warning
Description: 
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"

The reason is that I would like to add the target sources at a later time with
the target_sources command.

For more explanation see my post:
https://cmake.org/pipermail/cmake-developers/2015-July/025761.html

and the answer from Brad King:
https://cmake.org/pipermail/cmake-developers/2015-July/025764.html

Steps to Reproduce: 
See the attached file: bug.txt
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-11-16 16:28 Erik Sjölund   New Issue                                    
2015-11-16 16:28 Erik Sjölund   File Added: bug.txt                          
======================================================================

-- 

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

Reply via email to