summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'file-set-simplifications'Brad King2022-04-272-4/+13
|\ | | | | | | | | | | | | | | | | | | | | | | | | 9916d4dd44 cmTarget: factor out fileset type handling 79d6b928a3 RunCMake/target_sources: test `HEADERS` file sets via generic props d74f9599f6 cmTarget: require filesets to be of the right type 5da4fe30a9 cmTarget: factor out fileset property manipulation c89580487b cmTarget: pass candidate strings by const-ref 64ea1a272c messages: remove screamake from comments and errors Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7145
| * cmTarget: factor out fileset type handlingBen Boeckel2022-04-252-4/+4
| | | | | | | | | | This allows for new fileset types to be added more easily by factoring out the declarative information into a structure.
| * RunCMake/target_sources: test `HEADERS` file sets via generic propsBen Boeckel2022-04-252-0/+9
| |
* | Tests: Remove incidental use of C++98 compiler modesBrad King2022-04-261-8/+0
| | | | | | | | | | | | | | | | | | | | Several tests specify use of C++98 mode since commit b0f277db38 (HP aCC: record compiler flag for Ansi C++98 support for version 3.80 onwards, 2014-04-15, v3.1.0-rc1~550^2). The motivating use case for those changes was dropped by commit 49640d3629 (HP-UX: Drop support for building CMake on HP-UX, 2017-08-04, v3.10.0-rc1~304^2), so remove the use of C++98 mode too. Also remove code that, on some compilers, used C++11 instead of C++98, because we can now just use their default mode.
* | Merge topic 'target-bundle-dir-name-genex'Brad King2022-04-267-0/+31
|\ \ | |/ |/| | | | | | | | | | | 997af2e1a6 Genex: Add TARGET_BUNDLE_DIR_NAME 627b2eba6c Help: Make TARGET_BUNDLE[_CONTENT]_DIR examples more precise Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7177
| * Genex: Add TARGET_BUNDLE_DIR_NAMEBen Leadbetter2022-04-227-0/+31
| | | | | | | | | | | | Evaluate to the name of the bundle directory for a given bundle target. Fixes: #23409
* | Merge topic 'cmake-use-findpython'Brad King2022-04-2211-27/+27
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | 313ea361b0 CMake: Use FindPython instead of FindPythonInterp to build CMake itself b6a6190877 string(): Support hash functions in bootstrap Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7197
| * | CMake: Use FindPython instead of FindPythonInterp to build CMake itselfKyle Edwards2022-04-2111-27/+27
| |/ | | | | | | Fixes: #23444
* | Merge topic 'NO_CMAKE_INSTALL_PREFIX'Brad King2022-04-2218-2/+129
|\ \ | |/ |/| | | | | | | | | | | 42f7e39789 Find: Support per call disabling of CMAKE_INSTALL_PREFIX Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7163
| * Find: Support per call disabling of CMAKE_INSTALL_PREFIXRobert Maynard2022-04-1518-2/+129
| | | | | | | | Fixes #23359
* | Merge topic 'file-set-build-export'Brad King2022-04-212-13/+47
|\ \ | | | | | | | | | | | | | | | | | | | | | 9ee47188c0 cmExportBuildFileGenerator: handle genex-wrapped source paths 60fab8a6e0 cmInstallCommand: tweak error message Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7182
| * | cmExportBuildFileGenerator: handle genex-wrapped source pathsBen Boeckel2022-04-181-11/+45
| | | | | | | | | | | | | | | | | | | | | Previously a fileset with `$<$<CONFIG:Debug>:some_file>` would show up as-is (with escaping) in the build directory export. Instead, evaluate all fileset entries as generator expressions and list them as they are similar to the installation information.
| * | cmInstallCommand: tweak error messageBen Boeckel2022-04-161-2/+2
| | | | | | | | | | | | | | | Not all filesets need to be installed; just those that are visible on the target's interface. Clarify the error message.
* | | Merge topic 'cpack-dmg-sla'Brad King2022-04-208-1/+29
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | b760828d3f CPack/DMG: Do not use CPACK_RESOURCE_FILE_LICENSE for SLA by default Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7176
| * | | CPack/DMG: Do not use CPACK_RESOURCE_FILE_LICENSE for SLA by defaultBrad King2022-04-148-1/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since macOS 12.0 deprecated the tools needed to attach a SLA to a `.dmg`, we should no longer do this by default. Add a policy to change the default to off. Fixes: #22978
* | | | Merge topic 'vs-dotnet-startup-object'Brad King2022-04-206-0/+67
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d89af11f89 VS: Add StartupObject property for managed .NET projects Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7171
| * | | | VS: Add StartupObject property for managed .NET projectsFlorian Schweiger2022-04-126-0/+67
| | | | |
* | | | | Merge topic 'file-set-generated-dependency'Brad King2022-04-154-0/+28
|\ \ \ \ \ | |_|/ / / |/| | / / | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | d0d09aa29f FILE_SET: Make INTERFACE libraries with HEADER_SETS participate in buildsystem Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Acked-by: Gabriel Nützi <gnuetzi@gmail.com> Merge-request: !7173
| * | | FILE_SET: Make INTERFACE libraries with HEADER_SETS participate in buildsystemKyle Edwards2022-04-144-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If an INTERFACE library has HEADER_SETS, and its header sets contain files generated by a custom command, the library needs to participate in the buildsystem so that the files will be generated. Fixes: #23422
| * | | Merge topic 'file-set-repr-improvements' into release-3.23Brad King2022-04-1215-36/+20
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5fa15ec9f3 Help: Document that target_sources defines [INTERFACE_]HEADER_SETS c5d4812f20 cmTarget: make HEADER_SETS and INTERFACE_HEADER_SETS read-only 05783b168d cmFileSet: store visibility with the fileset Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7168
| * \ \ \ Merge topic 'correct_list-presets_parsing' into release-3.23Brad King2022-04-122-1/+16
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 45299a8f9b cmake: --list=presets=[type] doesn't generate incorrect warnings Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7164
| * \ \ \ \ Merge topic 'xcode-pch' into release-3.23Brad King2022-04-123-1/+19
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 476c6a8910 PCH: Fix Xcode non-pch language exclusion fcf1fcfd0c Tests: Ignore all classes in Xcode internal objc warnings Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7166
* | \ \ \ \ \ Merge topic 'xcode-universal'Brad King2022-04-146-0/+24
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 40dd46a96a Xcode: Add tests for OBJECT library per target `OSX_ARCHITECTURES` da4ccb502b Xcode: Check for multiple `OSX_ARCHITECTURES` on target 41ba35a42b cmTarget: Add `HasKnownObjectFileLocation()` shorthand Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7154
| * | | | | | | Xcode: Add tests for OBJECT library per target `OSX_ARCHITECTURES`Hyper Nova Sun2022-04-126-0/+24
| | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added test to cover handling of when `CMAKE_OSX_ARCHITECTURES` differs from OBJECT library target's `OSX_ARCHITECTURES`: TargetOverrideSingleArch: - When `CMAKE_OSX_ARCHITECTURES` is set to multiple archs, - But OBJECT library's `OSX_ARCHITECTURES` is set to single - Assert that OBJECT library target "`HasKnownObjectFileLocation`" and is installable TargetOverrideMultiArch: - When `CMAKE_OSX_ARCHITECTURES` is set to single arch, - But OBJECT library's `OSX_ARCHITECTURES` is set to multiple - Assert that OBJECT library target does not "`HasKnownObjectFileLocation`" and hence not installable
* | | | | | | Merge topic 'cmake_host_system_information-query-windows-registry'Brad King2022-04-1427-0/+312
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 17ff86547e cmake_host_system_information: query windows registry Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7155
| * | | | | | | cmake_host_system_information: query windows registryMarc Chevrier2022-04-1327-0/+312
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #21240, #23367
* | | | | | | | Merge topic 'file-set-repr-improvements'Brad King2022-04-1215-36/+20
|\ \ \ \ \ \ \ \ | | |_|_|_|_|/ / | |/| | | | | / | |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5fa15ec9f3 Help: Document that target_sources defines [INTERFACE_]HEADER_SETS c5d4812f20 cmTarget: make HEADER_SETS and INTERFACE_HEADER_SETS read-only 05783b168d cmFileSet: store visibility with the fileset Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7168
| * | | | | | cmTarget: make HEADER_SETS and INTERFACE_HEADER_SETS read-onlyBen Boeckel2022-04-1115-36/+20
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | There is no reason to allow these properties to be manipulated by user code. Instead, use the stored visibility on the fileset objects to derive what these properties should contain.
* | | | | | Merge topic 'correct_list-presets_parsing'Brad King2022-04-122-1/+16
|\ \ \ \ \ \ | | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 45299a8f9b cmake: --list=presets=[type] doesn't generate incorrect warnings Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7164
| * | | | | cmake: --list=presets=[type] doesn't generate incorrect warningsRobert Maynard2022-04-112-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | Fixes #23407
* | | | | | Merge topic 'xcode-pch'Brad King2022-04-122-0/+18
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | / | | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | 476c6a8910 PCH: Fix Xcode non-pch language exclusion fcf1fcfd0c Tests: Ignore all classes in Xcode internal objc warnings Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7166
| * | | | PCH: Fix Xcode non-pch language exclusionCristian Adam2022-04-112-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a regression caused by commit bbcdac4e5d (PCH: Fix all-language precompile header support in Xcode, 2021-08-07, v3.22.0-rc1~140^2). Fixes: #23138
| * | | | Tests: Ignore all classes in Xcode internal objc warningsGregor Jasny2022-04-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Xcode on Apple Silicon warns not only about AMSupportURL classes but also many more.
* | | | | Merge topic 'check-flag-fembed-bitcode-conflict'Brad King2022-04-112-0/+22
|\ \ \ \ \ | | |_|/ / | |/| | / | |_|_|/ |/| | | | | | | | | | | a10fc754a6 CheckSourceCompiles: Avoid linker warning with -fembed-bitcode Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7156
| * | | CheckSourceCompiles: Avoid linker warning with -fembed-bitcodeCraig Scott2022-04-092-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the Apple linker sees -headerpad_max_install_names and bitcode is enabled with a flag like -fembed-bitcode, it issues a warning and ignores the -headerpad_max_install_names flag. This causes unrelated compiler and linker flag checks to fail for valid flags. In f745e0497e (CheckCompilerFlags: Catch linker warning about ignored flags, 2022-01-03), we started detecting linker warnings, which caused a regression for projects that were setting -fembed-bitcode in their CMAKE_CXX_FLAGS or similar. Prevent that regression by removing the -headerpad_max_install_names linker flag when we know it will warn and be ignored anyway. Fixes: #23390 Issue: #23408
* | | | Merge topic 'CheckCompilerFlag-restore-env'Brad King2022-04-082-0/+18
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | 9dd585d12c CheckCompilerFlag: Fix regression in locale environment preservation Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7153
| * | | CheckCompilerFlag: Fix regression in locale environment preservationBrad King2022-04-072-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a typo from commit 660e0d80ae (internal/CheckCompilerFlag: rely on common configuration, 2022-01-12, v3.23.0-rc1~124^2~1) that caused locale environment variables to not be restored after they are set during the check.
* | | | Merge topic 'header-sets-no-framework'Brad King2022-04-074-0/+15
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | f779f8c0ad FILE_SET: Forbid adding header sets to Apple FRAMEWORK libraries Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Kyle Edwards <kyle.edwards@kitware.com> Merge-request: !7149
| * | | FILE_SET: Forbid adding header sets to Apple FRAMEWORK librariesKyle Edwards2022-04-074-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The feature needs a specialized implementation to place headers in the right place inside frameworks. To avoid silently doing the wrong thing, make this case an error for the 3.23 series. Issue: #23386
* | | | Merge topic 'xcode-xcconfig'Brad King2022-04-058-1/+46
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 53ca6edd8a xcode: add support for xcconfig files 183b6bbf51 Tests: Ignore all classes in Xcode internal objc warnings Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7119
| * | | | xcode: add support for xcconfig filesGregor Jasny2022-04-037-0/+45
| | | | | | | | | | | | | | | | | | | | Fixes: #18420
| * | | | Tests: Ignore all classes in Xcode internal objc warningsGregor Jasny2022-04-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Xcode on Apple Silicon warns not only about AMSupportURL classes but also many more.
* | | | | VS: Add compiler flag table entry for -FI followed by separate argumentBrad King2022-04-013-0/+24
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | The MSVC `/FI` flag accepts an attached value or a following argument. Previously our flag tables only had entries for the former. Add the latter. Fixes: #23382
* | | | Merge topic 'string-JSON-error-modes'Brad King2022-03-311-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 93dce4b4bf string(JSON): fix error message on invalid mode Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7130
| * | | | string(JSON): fix error message on invalid modeCarlo Teubner2022-03-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `GET_ARRAY` and `MEMBERS` modes were removed during development and review of commit 8eab76eb84 (string(JSON): Adds JSON parsing support to the string command, 2020-08-24, v3.19.0-rc1~159^2), but were accidentally left in an error message.
* | | | | Merge topic 'GNUInstallDirs-revert-multiarch-prefixes'Brad King2022-03-312-4/+4
|\ \ \ \ \ | |/ / / / |/| / / / | |/ / / | | | | | | | | | | | | | | | | 624ec3692f GNUInstallDirs: Revert "Apply Debian multiarch LIBDIR to more prefixes" Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7127
| * | | GNUInstallDirs: Revert "Apply Debian multiarch LIBDIR to more prefixes"Brad King2022-03-302-4/+4
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert commit dd9584b352 (GNUInstallDirs: Apply Debian multiarch LIBDIR to more prefixes, 2021-11-19, v3.23.0-rc1~323^2). There are separate problems with activating multiarch `LIBDIR` for each prefix it added: * Prefix `/` is often used to stage an installation with `DESTDIR` for inclusion in a tarball package or similar. * Prefix `/usr/local` is the default `CMAKE_INSTALL_PREFIX`, causing the multiarch `LIBDIR` to be cached after the first configuration, even if the prefix changes later. Revert the change for now, except for the documentation update. Further discussion will be needed to select a way to enable multiarch `LIBDIR` for `/` and `/usr/local`. Fixes: #23365 Issue: #19698
* | | Merge topic 'verify-header-sets'Brad King2022-03-3037-0/+221
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | c798744f81 FILE_SET: Add VERIFY_HEADER_SETS target property Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7085
| * | | FILE_SET: Add VERIFY_HEADER_SETS target propertyKyle Edwards2022-03-2937-0/+221
| | | | | | | | | | | | | | | | Fixes: #23338
* | | | Merge topic 'preserve-compiler-arg1'Brad King2022-03-305-11/+20
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 211a9deac1 Preserve CMAKE_${lang}_COMPILER_ARG1 from existing CMakeCache.txt b4de4217ae Tests: Simplify RunCMake.CompilerArgs no-clean cases Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7122