summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
Commit message (Collapse)AuthorAgeFilesLines
* RunCMake.Ninja: add a test for assumed sourcesBen Boeckel2017-04-212-0/+36
| | | | | This is a dark corner of the Ninja generator. It should be fixed in the future, but add a test which shows its behaviors.
* ninja: break unnecessary target dependenciesBen Boeckel2017-04-215-0/+58
| | | | | | | | | | | | | | | | | | Previously, given two libraries, X and Y where X depends on Y, all object compilations of X would require the Y library to have been linked before being compiled. This is not necessary and can instead be loosened such that object compilations of X only depend on the order-only dependencies of Y to be completed. This is to ensure that generated sources, headers, custom commands, etc. are completed before X starts to compile its objects. This should help build performance in projects with many libraries which cause a deep library dependency chain. Previously, a library at the bottom would not start compilation until after all other libraries completed, but now only its link step needs to wait and its compilation jobs can be run in parallel with other tasks. Fixes: #15555
* RunCMake.Ninja: support passing arguments when running ninjaBen Boeckel2017-04-211-1/+1
|
* Merge topic 'GNUInstallDirs-add-RUNSTATEDIR'Brad King2017-04-215-0/+9
|\ | | | | | | | | | | | | 40814a7c GNUInstallDirs: Add RUNSTATEDIR variable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !706
| * GNUInstallDirs: Add RUNSTATEDIR variableFelix Geyer2017-04-205-0/+9
| |
* | Drop Visual Studio 7 .NET 2003 generatorBrad King2017-04-198-19/+4
| | | | | | | | This generator has been deprecated since CMake 3.6. Remove it.
* | Merge topic 'objlib-extend'Brad King2017-04-1925-45/+89
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | eec93bce Allow OBJECT libraries to be installed, exported, and imported 93c89bc7 Genex: Allow TARGET_OBJECTS to be used everywhere ac0cf7ff Genex: Reject TARGET_OBJECTS on non-object libraries earlier 8577978c Tests: ExportImport C code should use explicit (void) in prototypes 26cfd039 cmInstallTargetGenerator: Re-order GenerateScriptForConfig logic 25f3f22a cmGlobalGenerator: Add method to check if object file location is known d596c550 cmGeneratorTarget: Add method to get the object file directory 930042f2 cmGeneratorTarget: Factor out a GetTargetObjectNames method ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !712
| * | Allow OBJECT libraries to be installed, exported, and importedRobert Maynard2017-04-1813-11/+40
| | | | | | | | | | | | | | | | | | | | | | | | Teach install() and export() to handle the actual object files. Disallow this on Xcode with multiple architectures because it still cannot be cleanly supported there. Co-Author: Brad King <brad.king@kitware.com>
| * | Genex: Allow TARGET_OBJECTS to be used everywhereRobert Maynard2017-04-182-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Previously the `TARGET_OBJECTS` generator expression was limited only to use in a buildsystem context so that Xcode's placeholders in object file paths can be evaluated. Lift this restriction so that the expression can at least be used in most settings. Co-Author: Brad King <brad.king@kitware.com>
| * | Genex: Reject TARGET_OBJECTS on non-object libraries earlierBrad King2017-04-1810-32/+45
| | | | | | | | | | | | | | | | | | | | | | | | Move the diagnostic that rejects the TARGET_OBJECTS generator expression in non-buildsystem context until after the check for whether the named target is an object library. This order will makes more sense than the previous order once TARGET_OBJECTS is allowed in non-buildsystem context.
* | | Merge topic 'fix-CMP0026-old'Brad King2017-04-182-0/+13
|\ \ \ | |/ / |/| | | | | | | | | | | | | | 5e616fcf CMP0026: Fix OLD behavior with file written during configure step Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !710
| * | CMP0026: Fix OLD behavior with file written during configure stepBrad King2017-04-172-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactoring in commit 60307c5056 (cmGeneratorTarget: Replace source classifier implementation, 2017-04-07) accidentally regressed support for CMP0026's OLD behavior in the case of a source file written by project code during the configure step after getting a LOCATION. We should not perform full source classification until the generate step because files written by the project's configure step may not exist yet. Add special logic to support this case. Add a test case for it. Reported-by: David Stoup <david.stoup@kitware.com>
* | | file: Add COPY/INSTALL option for fixed layout relative to a directoryBrad King2017-04-139-0/+38
| |/ |/| | | | | | | | | | | | | Add a `FILES_FROM_DIR` option to install a specific set of files specified relative to a given directory and preserve their layout in the destination. Currently we intend to use this internally to implement other things so we don't provide an `install()` porcelain or documentation yet.
* | Merge topic 'project-description'Brad King2017-04-136-0/+13
|\ \ | |/ |/| | | | | | | | | 3b484871 project: Add `DESCRIPTION` parameter Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !679
| * project: Add `DESCRIPTION` parameterAlex Turbov2017-04-116-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is quite often the project description has used in a real world software. Examples include: * part of a help screen of the application * builtin resources (`*.rc` files, data for "About" dialog of a GUI app, & etc) * most generators for CPack can use it * it could be used by documentary software (Doxygen, Sphinx) which is usually integrated to CMake based projects via `add_custom_target()` Now `project()` call learned an optional `DESCRIPTION` parameter with a short string describing a project. Being specified, it would set the `PROJECT_DESCRIPTION` variable which could be used in `configure_file()` or whatever user wants. Also `PROJECT_DESCRIPTION` is a default value for `CPACK_PACKAGE_DESCRIPTION_SUMMARY`.
* | Merge topic 'include_external_msproject-map-config'Brad King2017-04-067-4/+34
|\ \ | | | | | | | | | | | | | | | | | | | | | 227de0b9 include_external_msproject: Honor MAP_IMPORTED_CONFIG_<CONFIG> 4cd815f0 VS: Pass whole target to WriteProjectConfigurations Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !669
| * | include_external_msproject: Honor MAP_IMPORTED_CONFIG_<CONFIG>Beeble2017-04-057-4/+34
| |/ | | | | | | | | This allows projects added via `include_external_msproject` to compile the preferred configuration despite different naming conventions.
* | Merge topic 'prop-is-multi-config'Brad King2017-04-055-0/+11
|\ \ | | | | | | | | | | | | | | | | | | | | | 01826231 Tests: Add case for GENERATOR_IS_MULTI_CONFIG 38fd5866 Add GENERATOR_IS_MULTI_CONFIG global property Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !657
| * | Tests: Add case for GENERATOR_IS_MULTI_CONFIGBrad King2017-04-045-0/+11
| |/
* | CheckIPOSupported: Add Fortran supportRuslan Baratov2017-04-044-9/+0
|/
* Merge topic '16733-bundle-genex'Brad King2017-03-3118-9/+97
|\ | | | | | | | | | | | | | | | | | | | | d1dac1ac Xcode: Execute RunCMake.Framework also for Xcode generator d02709d7 Genex: Add `TARGET_BUNDLE_[CONTENT_]_DIR` generator expressions 013ffe76 cmGeneratorTarget: Call GetFrameworkDirectory in GetFullNameInternal 32e9d0ca cmGeneratorTarget: Use enum to describe bundle directory query level Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Craig Scott <craig.scott@crascit.com> Merge-request: !635
| * Xcode: Execute RunCMake.Framework also for Xcode generatorGregor Jasny2017-03-304-9/+11
| |
| * Genex: Add `TARGET_BUNDLE_[CONTENT_]_DIR` generator expressionsGregor Jasny2017-03-3014-0/+86
| | | | | | | | Closes #16733
* | Merge topic 'ipo-policy-CMP0069'Brad King2017-03-3126-1/+105
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | dfa8263f Implement interprocedural optimization for GNU compilers 1588a577 Add policy CMP0069 to enforce INTERPROCEDURAL_OPTIMIZATION a7575700 Refactoring: s,GetFeatureAsBool,IsIPOEnabled, e05835c3 CheckIPOSupported: Visual Studio and Xcode generators do not support IPO Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Brad King <brad.king@kitware.com> Reviewed-by: Nils Gladitz <nilsgladitz@gmail.com> Merge-request: !568
| * Add policy CMP0069 to enforce INTERPROCEDURAL_OPTIMIZATIONRuslan Baratov2017-03-3022-0/+87
| | | | | | | | | | | | | | | | | | Previously the `INTERPROCEDURAL_OPTIMIZATION` target property was honored only for the Intel compiler on Linux and otherwise ignored. In order to add support for more compilers incrementally without changing behavior in the future, add a new policy whose NEW behavior enforces the `INTERPROCEDURAL_OPTIMIZATION` property. Add flags for supported compilers and otherwise produce an error.
| * CheckIPOSupported: Visual Studio and Xcode generators do not support IPORuslan Baratov2017-03-305-1/+18
| |
* | Merge topic 'ctest-disable-tests'Brad King2017-03-3018-0/+201
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | b070947d Add 'DISABLED' test property 42c68aad CTest: Improve 'Completion Status' reported to CDash for 'Not Run' tests Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Brad King <brad.king@kitware.com> Merge-request: !571
| * | Add 'DISABLED' test propertyBetsy McPhail2017-03-2918-0/+201
| | | | | | | | | | | | | | | | | | When this property is set, the test is skipped and its status is automatically set to 'Not Run'. A disabled test will not be counted in the total number of tests and its completion status will be 'Disabled'.
* | | handle non-existing symlink creation locationsDomen Vrankar2017-03-283-0/+17
|/ /
* | Merge topic 'cpack-rpm-debuginfo-honor-package-filename'Brad King2017-03-272-3/+15
|\ \ | | | | | | | | | | | | | | | | | | | | | f237f5f8 CPack/RPM: support for debuginfo package renaming 6c09c5d6 CPack/RPM honor package file name on debuginfo enabled Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !620
| * | CPack/RPM: support for debuginfo package renamingDomen Vrankar2017-03-252-2/+6
| | |
| * | CPack/RPM honor package file name on debuginfo enabledDomen Vrankar2017-03-242-2/+10
| |/ | | | | | | | | | | | | | | Packages with debuginfo enabled should still honor defined package file name if file name is not set to RPM-DEFAULT. Fixes #16715
* | Merge topic 'cpack-rpm-tests-handle-build-id-links'Brad King2017-03-272-1/+7
|\ \ | | | | | | | | | | | | | | | | | | 4ba065b2 CPack/RPM tests: handle build-id links Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !628
| * | CPack/RPM tests: handle build-id linksDomen Vrankar2017-03-272-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | Build id links generation was introduced in rpm 4.13.0.1 so files related to them should be ignored as they are not relevant for the tests. Fixes #16710
| * | Merge branch 'implicit-dir-symlinks' into releaseBrad King2017-03-029-0/+74
| |\ \
| * \ \ Merge branch 'csproj_add_free_source_tags' into releaseBrad King2017-03-024-0/+38
| |\ \ \
| * \ \ \ Merge branch 'find-libarch-not-symlink' into releaseBrad King2017-02-283-0/+29
| |\ \ \ \
* | \ \ \ \ Merge topic '16680-ios-bundle-resources'Brad King2017-03-246-1/+37
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b5189fda Apple: Add test for bundle resource layout c51c2cfa Apple: Fix Resources location for all generators 060be58c Xcode: Properly handle Bundle Resources with more than one hierarchy level 484ccb0c Xcode: Properly handle non-resource Bundle files on iOS Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !613
| * | | | | | Apple: Add test for bundle resource layoutGregor Jasny2017-03-236-1/+37
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | Closes: #16680
* | | | | | RunCMake: Ignore xcodebuild bug warnings in testsGregor Jasny2017-03-241-1/+1
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Encountered on OS X 10.4 with old Xcode: Expected stderr to match: expect-err> ^$ Actual stderr: actual-err> Hit xcodebuild bug : ... bad interpreter: Text file busy
* | | | | Merge topic '14335-duplicate-else'Brad King2017-03-2213-0/+44
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | edac95b9 cmIfCommand: Reject duplicate else() and misplaced elseif() Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !594
| * | | | | cmIfCommand: Reject duplicate else() and misplaced elseif()Gregor Jasny2017-03-2213-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | Closes: #14335
* | | | | | Merge topic 'add-CheckIPOSupported-module'Brad King2017-03-2222-0/+89
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6c832674 Tests for 'CheckIPOSupported' module fdb2ba25 CheckIPOSupported: New module to check for compiler/cmake IPO support Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !558
| * | | | | Tests for 'CheckIPOSupported' moduleRuslan Baratov2017-03-2122-0/+89
| | | | | |
* | | | | | Merge topic 'geh-visibility-flag'Brad King2017-03-201-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9eb05b48 GenerateExportHeader: always fill in _EXPORT macros Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !36
| * | | | | | GenerateExportHeader: always fill in _EXPORT macrosBen Boeckel2017-03-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `_EXPORT` and `_NO_EXPORT` macros should always be made properly because the `<LANG>_VISIBILITY_PRESET` properties are controlled independently of this module. One case where this breaks compatibility is where a project was setting `USE_COMPILER_HIDDEN_VISIBILITY=OFF` and then marking a symbol used outside of the library with `_NO_EXPORT` which is a contridiction.
* | | | | | | CPack/RPM: handle extra slashesDomen Vrankar2017-03-134-0/+61
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extra slashes in some locations can cause errors during package generation and can also be present in generated rpm packages causing issues for the package user. Closes #16619
* | | | | | Merge topic 'BundleUtilities-elf-rpath'Brad King2017-03-134-0/+6
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 10fcef02 BundleUtilities: Fix bundle verification on Unix by considering rpaths. ac0786cb BundleUtilities: Teach `get_item_rpaths` to parse ELF binaries a52faa1f file: Add READ_ELF command to parse ELF binaries Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !551
| * | | | | | file: Add READ_ELF command to parse ELF binariesFlorian Apolloner2017-03-104-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Leave it undocumented for now because we intend to use it internally and it cannot be made available everywhere.
* | | | | | | Merge topic 'xcode-test-schema-generation'Brad King2017-03-132-0/+21
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3fd9f4ab Xcode: Add test for schema generation cf13e495 Xcode: Control schema generation via variable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !577