summaryrefslogtreecommitdiffstats
path: root/Source/cmTargetPropertyComputer.h
Commit message (Collapse)AuthorAgeFilesLines
* Modernize: Use #pragma once in all header filesKitware Robot2020-09-031-4/+1
| | | | | | | | | | | | | | | | #pragma once is a widely supported compiler pragma, even though it is not part of the C++ standard. Many of the issues keeping #pragma once from being standardized (distributed filesystems, build farms, hard links, etc.) do not apply to CMake - it is easy to build CMake on a single machine. CMake also does not install any header files which can be consumed by other projects (though cmCPluginAPI.h has been deliberately omitted from this conversion in case anyone is still using it.) Finally, #pragma once has been required to build CMake since at least August 2017 (7f29bbe6 enabled server mode unconditionally, which had been using #pragma once since September 2016 (b13d3e0d)). The fact that we now require C++11 filters out old compilers, and it is unlikely that there is a compiler which supports C++11 but does not support #pragma once.
* Remove filtering of allowed INTERFACE library propertiesBrad King2020-08-031-6/+0
| | | | | | | | | | | Previously we disallowed use of arbitrary properties on INTERFACE libraries. The goal was to future-proof projects using them by not allowing properties to be set that may affect their future inclusion in the generated buildsystem. In order to prepare to actually include INTERFACE libraries in the generated buildsystem, drop the filter and allow arbitrary properties to be set. Issue: #19145
* Single location for cmProp typedefVitaly Stakhovsky2020-06-011-2/+1
|
* cmTargetPropertyComputer::GetProperty: return cmPropVitaly Stakhovsky2020-03-161-12/+14
|
* Source: use std::string in place of const char*Vitaly Stakhovsky2020-01-291-6/+6
|
* cmStringAlgorithms: Move string functions to the new cmStringAlgorithms.hSebastian Holtermann2019-07-291-1/+1
| | | | | This adds the `cmStringAlgorithms.h` header and moves all string functions from `cmAlgorithms.h` to `cmStringAlgorithms.h`.
* Modernize: Prefer .substr in place of .c_str() + intArtur Ryt2019-03-301-1/+1
| | | | | | A lot of temporary/local strings were created out of C-strings substr can utilize current string size, so in theory be a little more efficient.
* Use C++11 nullptrDaniel Pfeifer2017-08-241-6/+6
|
* Use quotes for non-system includesDaniel Pfeifer2017-04-111-1/+1
| | | | | | | | | | | | | Automate with: git grep -l '#include <cm_' -- Source \ | xargs sed -i 's/#include <\(cm_.*\)>/#include "\1"/g' git grep -l '#include <cmsys/' -- Source \ | xargs sed -i 's/#include <\(cmsys\/.*\)>/#include "\1"/g' git grep -l '#include <cm[A-Z]' -- Source \ | xargs sed -i 's/#include <\(cm[A-Z].*\)>/#include "\1"/g'
* Fix several include-what-you-use findingsDaniel Pfeifer2016-11-081-4/+3
|
* Merge topic 'clang-tidy'Brad King2016-10-201-3/+3
|\ | | | | | | | | | | effa6c83 fix more issues reported by clang-tidy fb461cac silence selected clang-tidy violations
| * fix more issues reported by clang-tidyDaniel Pfeifer2016-10-201-3/+3
| |
* | cmTargetPropertyComputer: Add missing includeStephen Kelly2016-10-191-0/+1
| |
* | cmState: Move TargetType enum to separate namespaceStephen Kelly2016-10-191-6/+6
|/
* cmTargetPropertyComputer: Template some methods on the TargetStephen Kelly2016-10-151-10/+72
| | | | Implement the methods for cmTarget in the cmTarget source.
* cmTargetPropertyComputer: Unify whitelist handling from cmTargetStephen Kelly2016-10-151-0/+4
|
* cmTargetPropertyComputer: Move whitelist check from cmTargetStephen Kelly2016-10-151-3/+4
|
* cmTargetPropertyComputer: Extract into new filesStephen Kelly2016-10-151-0/+43