summaryrefslogtreecommitdiffstats
path: root/Source/cmSetSourceFilesPropertiesCommand.cxx
Commit message (Collapse)AuthorAgeFilesLines
* set_source_files_properties: Allow specification of directory scopeAlexandru Croitor2020-05-141-18/+95
| | | | | | | | | | | | | | | | | | | | | | | Both set_source_files_properties() and set_property(SOURCE) now accept two new optional arguments: DIRECTORY and TARGET_DIRECTORY. The DIRECTORY option takes a list of relative or absolute paths pointing to processed source directories (add_subdirectory was already called on them). These paths specify directory scopes where the source file properties will be set. Previously the scope was always the currently processed source directory. Similarly TARGET_DIRECTORY takes a list of targets, whose source directories will be used as the list of scopes where to set the source file properties. get_property() and get_source_file_property() also get the same new arguments, except only one value can be specified instead of a list. Fixes: #20128
* set_*_properties: simplify and shorten implementationsTushar Maheshwari2020-05-121-83/+38
| | | | | Optimize argument copies and range traversal. Inline the single use file static functions.
* cmSetSourceFilesPropertiesCommand: Port away from cmCommandRegina Pfeifer2019-09-121-14/+21
| | | | Ref: #19499
* Source sweep: Use cmIsOn instead of cmSystemTools::IsOnSebastian Holtermann2019-08-171-2/+2
| | | | | | | | | This replaces invocations of - `cmSystemTools::IsInternallyOn` with `cmIsInternallyOn` - `cmSystemTools::IsNOTFOUND` with `cmIsNOTFOUND` - `cmSystemTools::IsOn` with `cmIsOn` - `cmSystemTools::IsOff` with `cmIsOff`
* clang-tidy: Use emplaceRegina Pfeifer2019-01-171-8/+8
|
* Remove unnecessary c_str() callsVitaly Stakhovsky2018-09-051-1/+1
| | | | Use the new IsOn(),IsOff() overloads.
* Include necessary headers in commandsDaniel Pfeifer2016-10-261-0/+3
|
* Separate compilation for commands included in cmBootstrapCommands2Daniel Pfeifer2016-10-211-0/+1
|
* Simplify CMake per-source license noticesBrad King2016-09-271-11/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Per-source copyright/license notice headers that spell out copyright holder names and years are hard to maintain and often out-of-date or plain wrong. Precise contributor information is already maintained automatically by the version control tool. Ultimately it is the receiver of a file who is responsible for determining its licensing status, and per-source notices are merely a convenience. Therefore it is simpler and more accurate for each source to have a generic notice of the license name and references to more detailed information on copyright holders and full license terms. Our `Copyright.txt` file now contains a list of Contributors whose names appeared source-level copyright notices. It also references version control history for more precise information. Therefore we no longer need to spell out the list of Contributors in each source file notice. Replace CMake per-source copyright/license notice headers with a short description of the license and links to `Copyright.txt` and online information available from "https://cmake.org/licensing". The online URL also handles cases of modules being copied out of our source into other projects, so we can drop our notices about replacing links with full license text. Run the `Utilities/Scripts/filter-notices.bash` script to perform the majority of the replacements mechanically. Manually fix up shebang lines and trailing newlines in a few files. Manually update the notices in a few files that the script does not handle.
* Revise C++ coding style using clang-formatKitware Robot2016-05-161-88/+48
| | | | | | | | | | | | | Run the `Utilities/Scripts/clang-format.bash` script to update all our C++ code to a new style defined by `.clang-format`. Use `clang-format` version 3.8. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
* Remove some c_str() calls.Stephen Kelly2014-03-111-3/+3
| | | | | | Use the clang RemoveCStrCalls tool to automatically migrate the code. This was only run on linux, so does not have any positive or negative effect on other platforms.
* Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-131-4/+4
| | | | | | | | | | | | | | | | | Our Git commit hooks disallow modification or addition of lines with trailing whitespace. Wipe out all remnants of trailing whitespace everywhere except third-party code. Run the following shell code: git ls-files -z -- \ bootstrap doxygen.config '*.readme' \ '*.c' '*.cmake' '*.cpp' '*.cxx' \ '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \ '*.mm' '*.pike' '*.py' '*.txt' '*.vim' | egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' | egrep -z -v '^(Modules/CPack\..*\.in)' | xargs -0 sed -i 's/ \+$//'
* Convert CMake to OSI-approved BSD LicenseBrad King2009-09-281-14/+9
| | | | | | | This converts the CMake license to a pure 3-clause OSI-approved BSD License. We drop the previous license clause requiring modified versions to be plainly marked. We also update the CMake copyright to cover the full development time range.
* BUG:6990 fix crash with set_source_files_propertiesBill Hoffman2008-05-081-1/+2
|
* ENH: Cleanup building of OS X bundle contentBrad King2008-02-151-26/+1
| | | | | | | | | | - Fixes repeated rebuild of bundles by Makefile generators - Add special rules to copy sources to their MACOSX_PACKAGE_LOCATION bundle directory - Remove MacOSX_Content language hack - Remove EXTRA_CONTENT property - Remove MACOSX_CONTENT - Remove corresponding special cases in object names
* ENH: add return and break support to cmake, also change basic command ↵Ken Martin2008-01-231-2/+2
| | | | invocation signature to be able to return extra informaiton via the cmExecutionStatus class
* ENH: improve SetProperties and fix a couple warningsKen Martin2006-12-111-32/+60
|
* BUG: Several fixes to handle bundle content on Mac OSXAndy Cedilnik2006-07-061-0/+2
|
* COMP: Remove warningAndy Cedilnik2006-03-291-1/+0
|
* ENH: Add support for adding content to bundlesAndy Cedilnik2006-03-281-7/+33
|
* STYLE: some m_ to this-> cleanupKen Martin2006-03-151-1/+1
|
* ENH: CleanupsAndy Cedilnik2004-02-221-0/+2
|
* BUG: Fixed crash when source file cannot be looked up correctly.Brad King2003-06-131-3/+6
|
* yikes added new custom command supportKen Martin2003-06-031-61/+20
|
* ENH: remove warnings from borland 6 compilerBill Hoffman2003-05-291-1/+0
|
* ENH: Added source file property OBJECT_DEPENDS to support generated header ↵Brad King2002-12-131-0/+13
| | | | files included in non-generated sources.
* ENH: Moved ExpandListVariables out of individual commands. Argument ↵Brad King2002-12-111-4/+2
| | | | evaluation rules are now very consistent. Double quotes can always be used to create exactly one argument, regardless of contents inside.
* ENH: Added reference to Copyright.txt. Removed old reference to ITK ↵Brad King2002-10-231-3/+3
| | | | copyright. Changed program name to CMake instead of Insight in source file header. Also removed tabs.
* fixed bug maybeKen Martin2002-08-261-0/+2
|
* fixed some warningsKen Martin2002-08-221-1/+2
|
* modified how source files store propertiesKen Martin2002-08-161-31/+60
|
* make sure ; expansion is done in all commandsBill Hoffman2002-03-291-5/+7
|
* ENH: major change, the cmMakefile now contains a master list of cmSourceFile ↵Bill Hoffman2002-03-291-0/+136
objects, the source lists reference the list via pointers, also you can now set properties on a file, like compile flags, abstract, etc.