summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'cuda_architectures'Brad King2020-04-161-0/+1
|\ | | | | | | | | | | | | | | | | | | 21131ca60c CUDA: Add CudaOnly.CompileFlags test f0931b0790 CUDA: Convert tests to use CUDA_ARCHITECTURES e98588aaba CUDA: Add CUDA_ARCHITECTURES target property Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Patrick Stotko <stotko@cs.uni-bonn.de> Merge-request: !4568
| * CUDA: Add CUDA_ARCHITECTURES target propertyRaul Tambre2020-04-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | Simplifies CUDA target architecture handling. Required for Clang support as Clang doesn't automatically select a supported architecture. We detect a supported architecture during compiler identification and set CMAKE_CUDA_ARCHITECTURES to it. Introduces CMP0104 for backwards compatibility with manually setting code generation flags with NVCC. Implements #17963.
* | Merge topic 'ibmi-aix-exports'Brad King2020-04-151-2/+5
|\ \ | |/ |/| | | | | | | | | 420e91c951 AIX: Activate symbol export/import IBM i (OS400) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4611
| * AIX: Activate symbol export/import IBM i (OS400)Brad King2020-04-141-2/+5
| | | | | | | | Fixes: #20582
| * ObjC: Add _COMPILE_LAUNCHER supportCristian Adam2020-01-091-0/+2
| | | | | | | | Fixes: #20178
* | cmTarget::GetProperty: return cmPropVitaly Stakhovsky2020-03-301-66/+60
| |
* | cmStateDirectory::GetProperty: return cmPropVitaly Stakhovsky2020-03-271-1/+4
| |
* | Merge topic 'pch-warn-invalid'Brad King2020-03-271-0/+1
|\ \ | | | | | | | | | | | | | | | | | | 2ce08e5489 PCH: add an option to disable `-Winvalid-pch` Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4499
| * | PCH: add an option to disable `-Winvalid-pch`Cristian Adam2020-03-261-0/+1
| | | | | | | | | | | | Fixes: #20295
* | | Merge topic 'cleanup-endls-2'Brad King2020-03-261-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 1e4b5c7d09 Refactor: Avoid `std::endl` where it's not necessary (part 2) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4514
| * | | Refactor: Avoid `std::endl` where it's not necessary (part 2)Alex Turbov2020-03-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `std::endl` manipulator, except inserting `\n` character, also performs `os.flush()`, which may lead to undesired effects (like disk I/O in the middle of forming data strings). For the `std::stringstream` it also has no meaning. * replace multiple `operator<<` calls on a string literal w/ the only call and the only (bigger) string literal; * replace one character string literal used in `operator<<` w/ a char literal.
* | | | cmState::GetTargetTypeName: return type is *cmPropVitaly Stakhovsky2020-03-191-1/+1
|/ / /
* | | cmTarget: minor code improvementsVitaly Stakhovsky2020-03-171-23/+23
|/ /
* | Merge topic 'property-computer'Brad King2020-03-171-3/+5
|\ \ | | | | | | | | | | | | | | | | | | fad0ee5404 cmTargetPropertyComputer::GetProperty: return cmProp Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4482
| * | cmTargetPropertyComputer::GetProperty: return cmPropVitaly Stakhovsky2020-03-161-3/+5
| | |
* | | cmPropertyMap: Introduce cmProp as return type for GetProperty() functionsVitaly Stakhovsky2020-03-131-2/+3
|/ / | | | | | | | | | | | | Currently properties are usually stored internally as `std::string`. However, family of GetProperty() functions return them as `const char *` using `c_str()`. The proposed `cmProp`, typedef'ed as `const std::string *` will expose properties more naturally.
* | cmMakefile::AddCacheDefinition: Add overload that accepts std::string valueVitaly Stakhovsky2020-03-111-1/+1
| |
* | Add support for FRAMEWORK_MULTI_CONFIG_POSTFIX_<CONFIG>Alexandru Croitor2020-03-041-0/+8
| |
* | Ninja Multi-Config: Fix issue with framework dependencies and AutogenKyle Edwards2020-02-171-7/+15
| | | | | | | | Fixes: #20345
* | AIX: Add an option to disable automatic exports from shared librariesBrad King2020-01-311-0/+1
| | | | | | | | | | | | | | | | | | | | Since commit 0f150b69d3 (AIX: Explicitly compute shared object exports for both XL and GNU, 2019-07-11, v3.16.0-rc1~418^2~2) we always export all symbols from shared libraries by default. Add a new target property called `AIX_EXPORT_ALL_SYMBOLS` that can be explicitly set to OFF to suppress this behavior and export no symbols by default. Fixes: #20290
* | Source: use std::string in place of const char*Vitaly Stakhovsky2020-01-291-6/+6
| |
* | Merge topic 'append-std-string'Brad King2020-01-281-10/+10
|\ \ | | | | | | | | | | | | | | | | | | 1398517f31 AppendProperty: convert value param to std::string Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4282
| * | AppendProperty: convert value param to std::stringVitaly Stakhovsky2020-01-251-10/+10
| | |
* | | Merge topic 'cuda_runtime_library_controls'Brad King2020-01-281-0/+1
|\ \ \ | |/ / |/| | | | | | | | | | | | | | 0d0145138f CUDA: Add abstraction for cuda runtime selection Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4178
| * | CUDA: Add abstraction for cuda runtime selectionRobert Maynard2020-01-271-0/+1
| | | | | | | | | | | | | | | Fixes #17559 Replace our hard-coded default of cudart=static with a first-class abstraction to select the runtime library from an enumeration of logical names.
* | | VS: Add support for .NET Standard and .NET CoreJoerg Bornemann2020-01-241-0/+1
|/ / | | | | | | Fixes: #20105
* | Merge topic 'out-of-dir-link-list'Brad King2020-01-171-10/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | f0e67da061 target_link_libraries: Fix out-of-dir linking of a list of targets acee629103 cmTargetLinkLibrariesCommand: Move HandleLibrary to helper struct ba675f1ecc Tests: Enable CMP0022 in ExportImport out-of-dir linking case Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4226
| * | target_link_libraries: Fix out-of-dir linking of a list of targetsBrad King2020-01-161-10/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In a case like target_link_libraries(targetInOtherDir PUBLIC "$<1:a;b>") then all entries in the list need to be looked up in the caller's scope. Previously our `::@(directory-id)` suffix would apply only to the last entry. Instead surround the entire entry by a pair `::@(directory-id);...;::@` so that the `::@` syntax can encode a directory lookup scope change evaluated as the list is processed. Fixes: #20204
* | | Merge topic 'pch_job_pool'Brad King2020-01-161-0/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 97c124e30f Ninja: Add a separate job pool for PCH creation ebd0b16ddb vim: Add target_precompile_headers command highlighting Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Cristian Adam <cristian.adam@gmail.com> Merge-request: !4224
| * | | Ninja: Add a separate job pool for PCH creationDan Johnston2020-01-161-0/+1
| |/ / | | | | | | | | | | | | | | | | | | Add a `JOB_POOL_PRECOMPILE_HEADER` target property to specify the pool name, and its associated `CMAKE_JOB_POOL_PRECOMPILE_HEADER` variable. Fixes: #20217
* | | cmMakefile: modernize memory managementMarc Chevrier2020-01-141-2/+6
|/ /
* | Merge topic 'objc-compiler-launcher'Brad King2020-01-101-0/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | f6ef6e5a73 Merge branch 'backport-3.16-objc-compiler-launcher' 1a9f6bad98 ObjC: Add _COMPILE_LAUNCHER support a05b9d4239 ObjC: Add _COMPILE_LAUNCHER support Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4189
| * | ObjC: Add _COMPILE_LAUNCHER supportCristian Adam2020-01-091-0/+2
| | | | | | | | | | | | Fixes: #20178
* | | Add support for FOLDER target property to custom targetsLuca Cappa2020-01-091-1/+2
|/ / | | | | | | Fixes: #18372
* | Merge topic 'add-header-cmext-algorithm'Brad King2019-12-181-16/+17
|\ \ | | | | | | | | | | | | | | | | | | | | | f7d12609f0 Refactoring: use append functions from cmext/algorithm a38d04c076 Refactoring: introduce header cmext/algorithm with append functions Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4131
| * | Refactoring: use append functions from cmext/algorithmMarc Chevrier2019-12-171-16/+17
| | |
* | | Merge topic 'stdstring-target'Brad King2019-12-171-6/+5
|\ \ \ | |/ / |/| | | | | | | | | | | | | | c34b4497f8 cmTarget: add std::string overloads Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4137
| * | cmTarget: add std::string overloadsVitaly Stakhovsky2019-12-141-6/+5
| | |
* | | Ninja: Add multi-config variantKyle Edwards2019-12-131-1/+8
|/ / | | | | | | Co-Authored-by: vector-of-bool <vectorofbool@gmail.com>
* | Xcode: Add custom working directory propertyGregor Jasny2019-11-181-0/+1
| | | | | | | | Closes: #19967
* | Merge topic 'pch-reuse-no-prop'Brad King2019-11-181-5/+2
|\ \ | |/ | | | | | | | | | | bb4c2781ce PCH: Do not issue an error on duplicate target_precompile_headers call Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4046
| * PCH: Do not issue an error on duplicate target_precompile_headers callCristian Adam2019-11-151-5/+2
| | | | | | | | Fixes: #19970
* | Merge topic 'xcode-scheme-env'Brad King2019-10-251-0/+1
|\ \ | | | | | | | | | | | | | | | | | | f0005dacde Xcode: Add CMAKE_XCODE_SCHEME_ENVIRONMENT variable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3933
| * | Xcode: Add CMAKE_XCODE_SCHEME_ENVIRONMENT variableFelix Heidrich2019-10-241-0/+1
| |/ | | | | | | | | | | | | Initialize the `XCODE_SCHEME_ENVIRONMENT` target property. This was left out of commit 6b7f1e1db0 (Xcode: Add variables and properties to configure schemes, 2018-07-29, v3.13.0-rc1~243^2).
* | VS: Propagate CMAKE_VS_GLOBALS into custom targetsAlexander Boczar2019-10-171-2/+1
|/ | | | Issue: #19708
* Xcode: Restore CMAKE_XCODE_GENERATE_SCHEME for custom targetsBrad King2019-10-021-1/+6
| | | | | | | | | The target property introduced by commit 413b71485a (Xcode: Create Xcode schemes per target, 2019-03-11, v3.15.0-rc1~347^2) was accidentally not initialized by `CMAKE_XCODE_GENERATE_SCHEME` for custom targets. Fix it and update the test. Fixes: #19759
* Merge topic 'clang-format-normalize-headers-presentation'Brad King2019-10-021-1/+2
|\ | | | | | | | | | | | | | | | | | | ed98209ddc Revise include order using clang-format-6.0 185fe49f29 clang-format: Normalize headers presentation 42ef28b4f3 Remove unused uid_t/gid_t types on Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Sebastian Holtermann <sebholt@web.de> Merge-request: !3851
| * Revise include order using clang-format-6.0Kitware Robot2019-10-011-1/+2
| | | | | | | | | | Run the `clang-format.bash` script to update our C and C++ code to a new include order `.clang-format`. Use `clang-format` version 6.0.
* | Merge topic 'xcode-debug-document-versioning'Brad King2019-10-021-0/+1
|\ \ | |/ |/| | | | | | | | | 67200c37b0 xcode: Add XCODE_SCHEME_DEBUG_DOCUMENT_VERSIONING property Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3876
| * xcode: Add XCODE_SCHEME_DEBUG_DOCUMENT_VERSIONING propertyGregor Jasny2019-10-011-0/+1
| |