• Stephen Kelly's avatar
    cmTarget: Add all sources traced from custom commands at once. · 4f1c71fd
    Stephen Kelly authored
    The AddSource method accepts one file and tries to avoiding adding
    it to the sources-list of the target if it already exists.  This
    involves creating many cmSourceFileLocation objects for matching
    on existing files, which is an expensive operation.
    
    Avoid the searching algorithm by appending the new sources as one
    group.  Generate-time processing of source files will ensure
    uniqueness.
    
    Add a new AddTracedSources for this purpose.  The existing
    AddSources method must process the input for policy CMP0049, but
    as these source filenames come from cmSourceFile::GetFullPath(),
    we can forego that extra processing.
    4f1c71fd
Name
Last commit
Last update
Auxiliary Loading commit data...
Help Loading commit data...
Licenses Loading commit data...
Modules Loading commit data...
Source Loading commit data...
Templates Loading commit data...
Tests Loading commit data...
Utilities Loading commit data...
.gitattributes Loading commit data...
.hooks-config.bash Loading commit data...
CMakeCPack.cmake Loading commit data...
CMakeCPackOptions.cmake.in Loading commit data...
CMakeGraphVizOptions.cmake Loading commit data...
CMakeLists.txt Loading commit data...
CMakeLogo.gif Loading commit data...
CONTRIBUTING.rst Loading commit data...
CTestConfig.cmake Loading commit data...
CTestCustom.cmake.in Loading commit data...
CompileFlags.cmake Loading commit data...
Copyright.txt Loading commit data...
DartConfig.cmake Loading commit data...
DartLocal.conf.in Loading commit data...
README.rst Loading commit data...
bootstrap Loading commit data...
cmake_uninstall.cmake.in Loading commit data...
configure Loading commit data...
doxygen.config Loading commit data...