Andrew Schwartzmeyer created MESOS-8648:
-------------------------------------------

             Summary: CMake should use `target_sources` for large lists of 
source files
                 Key: MESOS-8648
                 URL: https://issues.apache.org/jira/browse/MESOS-8648
             Project: Mesos
          Issue Type: Improvement
            Reporter: Andrew Schwartzmeyer


In {{src/CMakeLists.txt}}, we currently have multiple variables holding lists 
of source files concatenating into {{MESOS_SRC}}. This is an anti-pattern, and 
we should instead use 
[{{target_sources}}|https://cmake.org/cmake/help/latest/command/target_sources.html]
 in each subdirectory to add them to {{libmesos}}. Here's a [more thorough 
explanation|https://crascit.com/2016/01/31/enhanced-source-file-handling-with-target_sources/].



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to