[cmake-developers] [CMake 0015847]: ADD_LIBRARY without any sources generates an unnecessary warning
Mantis Bug Tracker
mantis at public.kitware.com
Mon Nov 16 16:28:51 EST 2015
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
======================================================================
More information about the cmake-developers
mailing list