summaryrefslogtreecommitdiffstats
path: root/Source
Commit message (Collapse)AuthorAgeFilesLines
* cmSystemTools: Fix encoding of whole-environment lookup on Windowszhenhaonong2022-09-231-0/+9
| | | | | | | On Windows, `environ` is encoded by `CP_ACP`, which may be different from `KWSYS_ENCODING_DEFAULT_CODEPAGE`. When environment variables include a unicode character, they may be corrupted. Use `_wenviron` instead.
* CMake Nightly Date StampKitware Robot2022-09-181-1/+1
|
* CMake Nightly Date StampKitware Robot2022-09-171-1/+1
|
* Merge topic 'try_compile-new-project-signature'Brad King2022-09-161-30/+70
|\ | | | | | | | | | | | | | | 56ae40cc59 try_compile: Add PROJECT keyword-dispatched signature Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7677
| * try_compile: Add PROJECT keyword-dispatched signatureMatthew Woehlke2022-09-141-30/+70
| | | | | | | | | | | | | | Introduce a new signature for the project flavor of try_compile (and try_run) which removes the `bindir` argument and adds a required PROJECT tag. This is similar to the SOURCES flavor added by commit aa9220d3 (try_compile: Add keyword-dispatched signature, 2022-09-02).
* | Merge topic 'xcode-lib-dirs'Brad King2022-09-162-4/+15
|\ \ | | | | | | | | | | | | | | | | | | d4cc39842e Xcode: Do not append per-config suffixes to library search paths Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7672
| * | Xcode: Do not append per-config suffixes to library search pathsMikko Sivulainen2022-09-152-4/+15
| |/ | | | | | | | | | | | | Add policy `CMP0142` to remove the automatic addition of the `$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)` suffix in a compatible way. Fixes: #21757
* | Merge topic 'cmake-presets-package-clear'Kyle Edwards2022-09-161-0/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | ec8b67918c cmCMakePresetsGraph: Clear package presets in ClearPresets() Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7688
| * | cmCMakePresetsGraph: Clear package presets in ClearPresets()Kyle Edwards2022-09-151-0/+2
| | |
* | | Merge topic 'cmake-presets-list-error-message'Kyle Edwards2022-09-161-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | e7087308ce cmake --list-presets: List package as a valid option Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7684
| * | | cmake --list-presets: List package as a valid optionKyle Edwards2022-09-151-1/+1
| |/ /
* | | CMake Nightly Date StampKitware Robot2022-09-161-1/+1
|/ /
* | Merge topic 'export-ios-app-layout'Brad King2022-09-151-1/+4
|\ \ | | | | | | | | | | | | | | | | | | d26c520f4b export: Fix IMPORTED_LOCATION of iOS flat app bundles Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7676
| * | export: Fix IMPORTED_LOCATION of iOS flat app bundlesHarry Mallon2022-09-141-1/+4
| |/ | | | | | | | | | | | | | | | | iOS/tvOS app bundles are flat and do not include the `Contents/MacOS/` layers, so they should not be in the `IMPORTED_LOCATION`. Use the same logic that commit 34f5ef564a (iOS: Fix App Bundle layout, 2015-12-10, v3.5.0-rc1~129^2~1) added for the installation layout. Fixes: #23963
* | Merge topic 'link-framework-with-multi-config-postfix'Brad King2022-09-153-11/+18
|\ \ | | | | | | | | | | | | | | | | | | fc06450ff4 Apple: Fix regression when linking a framework with postfix Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7675
| * | Apple: Fix regression when linking a framework with postfixMarc Chevrier2022-09-143-11/+18
| | | | | | | | | | | | | | | | | | | | | Fix a regression caused by commit 40178f3c90 (cmGlobalGenerator: Add helper to split framework path, 2022-02-10, v3.24.0-rc1~661^2~1). Fixes: #23961
| * | CMake 3.24.2v3.24.2Brad King2022-09-131-1/+1
| | |
| * | Merge topic 'truncation_invalid' into release-3.24Brad King2022-09-091-1/+5
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bd30d20bc3 Tests: Add cases covering bad ctest output truncation types dbf840392d ctest: print error for invalid CTEST_CUSTOM_TEST_OUTPUT_TRUNCATION Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7596
| * \ \ Merge topic 'revert-automoc-silence-warnings' into release-3.24Brad King2022-09-091-10/+1
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e08d34eda1 automoc: revert attempts to silence linker warning on macos Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7652
* | | | | CMake Nightly Date StampKitware Robot2022-09-151-1/+1
| |_|_|/ |/| | |
* | | | Merge topic 'MsvcDebugInformationFormatAbstraction'Brad King2022-09-144-1/+52
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a858466aac MSVC: Add test for debug information format 0e96a20478 MSVC: Add abstraction for debug information format d4c8111da4 Clang/Windows: Clarify name of internal runtime library flags variables Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7606
| * | | | MSVC: Add abstraction for debug information formatGlen Chung2022-09-144-1/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace our hard-coded default for `/Zi` with a first-class abstraction to select the debug information format an enumeration of logical names. We've long hesitated to do this because the idea of "debug information format" touches on related concepts on several platforms. Avoid that scope creep by simply defining an abstraction that applies only when targeting the MSVC ABI on Windows. Removing the old default flag requires a policy because existing projects may rely on string processing to edit them and choose a runtime library under the old behavior. Add policy CMP0141 to provide compatibility. Fixes: #10189
* | | | | Merge topic 'cmake-presets-package-unsupported-error'Brad King2022-09-141-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3546657cc7 CMakePresets.json: Fix error message for unsupported package presets Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7669
| * | | | | CMakePresets.json: Fix error message for unsupported package presetsKyle Edwards2022-09-131-1/+1
| | | | | |
* | | | | | CMake Nightly Date StampKitware Robot2022-09-141-1/+1
|/ / / / /
* | | | | Merge topic 'LINUX-host'Brad King2022-09-131-0/+5
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | caffb15d09 LINUX: Set CMAKE_HOST_LINUX variable when running on a Linux host Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: hinell <al.neodim@gmail.com> Merge-request: !7661
| * | | | | LINUX: Set CMAKE_HOST_LINUX variable when running on a Linux hostCristian Adam2022-09-091-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | Relates: #23840
* | | | | | CMake Nightly Date StampKitware Robot2022-09-131-1/+1
| | | | | |
* | | | | | Merge topic 'try_compile_correctly_compute_exec_name'Brad King2022-09-122-51/+37
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0c141b0393 try_compile: Record output location instead of reverse computing it Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7626
| * | | | | | try_compile: Record output location instead of reverse computing itRobert Maynard2022-09-072-51/+37
| | |/ / / / | |/| | | | | | | | | | | | | | | | Fixes #23887, #23942, #20163, #18288
* | | | | | CMake Nightly Date StampKitware Robot2022-09-121-1/+1
| | | | | |
* | | | | | CMake Nightly Date StampKitware Robot2022-09-111-1/+1
| | | | | |
* | | | | | CMake Nightly Date StampKitware Robot2022-09-101-1/+1
| |/ / / / |/| | | |
* | | | | Merge topic 'BSD'Brad King2022-09-091-0/+14
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1ea8b8ed86 BSD: Set CMAKE_HOST_BSD variable on a BSD host 288f72efea BSD: Only use BSD as variable for target BSD system Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7648
| * | | | | BSD: Set CMAKE_HOST_BSD variable on a BSD hostCristian Adam2022-09-051-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also the BSD variable will be set in CMake scripting mode (-P). Relates: #23853
* | | | | | Merge topic 'truncation_invalid'Brad King2022-09-091-1/+5
|\ \ \ \ \ \ | | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bd30d20bc3 Tests: Add cases covering bad ctest output truncation types dbf840392d ctest: print error for invalid CTEST_CUSTOM_TEST_OUTPUT_TRUNCATION Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7596
| * | | | | ctest: print error for invalid CTEST_CUSTOM_TEST_OUTPUT_TRUNCATIONFrank Winklmeier2022-09-071-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Print an error message for invalid values of `CTEST_CUSTOM_TEST_OUTPUT_TRUNCATION` in a ctest dashboard script. The option was added by commit 140704d443 (ctest: add option for output truncation, 2022-03-07, v3.24.0-rc1~513^2). Fixes: #23869
* | | | | | Merge topic 'revert-automoc-silence-warnings'Brad King2022-09-091-10/+1
|\ \ \ \ \ \ | | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e08d34eda1 automoc: revert attempts to silence linker warning on macos Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7652
| * | | | | automoc: revert attempts to silence linker warning on macosBrad King2022-09-071-10/+1
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We've made several attempts to add a dummy symbol to `mocs_compilation.cpp` when there are no automoc sources: * commit 4a9daae483 (automoc: silence linker warning on macos, 2022-05-25, v3.24.0-rc1~55^2) * commit 844244ccdc (automoc: avoid compiler warnings in linker-warning- silencing code, 2022-08-10, v3.24.1~6^2) * commit fc8628389f (automoc: avoid more compiler warnings in linker- warning-silencing code, 2022-08-29) The last attempt derives a symbol name from the path to the source file, but that breaks reproducible builds because it is not stable w.r.t. the location of the build tree. Revert all these attempts for the 3.24 release series, and return to what 3.23 and below did. Further investigation will be needed to resolve the original issue. Fixes: #23937 Issue: #23551, #23823, #23823
* | | | | Merge topic 'check-library-properties-fix-performances-regression'Brad King2022-09-099-73/+54
|\ \ \ \ \ | | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | 985b4c82a6 Check link libraries properties: fix performances regression a47eef32a3 renames method FinalizeTargetCompileInfo() in FinalizeTargetConfiguration(). Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7651
| * | | | Check link libraries properties: fix performances regressionMarc Chevrier2022-09-075-65/+46
| | | | | | | | | | | | | | | | | | | | Fixes: #23939
| * | | | renames method FinalizeTargetCompileInfo() in FinalizeTargetConfiguration().Marc Chevrier2022-09-075-8/+8
| |/ / /
| * | | Merge topic 'Link-MACOSX_BUNDLE' into release-3.24Brad King2022-09-011-0/+1
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f5a441a616 Xcode: Fix erroneous MACOSX_BUNDLE link Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7624
| * \ \ \ Merge topic 'CMAKE_FIND_USE_INSTALL_PREFIX-support-staging-prefix' into ↵Brad King2022-08-311-22/+46
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | release-3.24 0fc10bb19b CMAKE_FIND_USE_INSTALL_PREFIX considers CMAKE_STAGING_PREFIX 43d31c5198 cmFindBase: Refactor CMAKE_FIND_USE_INSTALL_PREFIX handling Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7623
* | | | | | CMake Nightly Date StampKitware Robot2022-09-091-1/+1
| | | | | |
* | | | | | CMake Nightly Date StampKitware Robot2022-09-081-1/+1
| |_|_|_|/ |/| | | |
* | | | | Merge topic 'try_compile-unique-bindir'Brad King2022-09-075-24/+220
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | aa9220d3a0 try_compile: Add keyword-dispatched signature d1befe5515 cmSystemTools: Add MakeTempDirectory Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Acked-by: Matthew Woehlke <matthew.woehlke@kitware.com> Merge-request: !7579
| * | | | | try_compile: Add keyword-dispatched signatureMatthew Woehlke2022-09-053-23/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce a new signature for try_compile (and try_run) which removes the `bindir` argument and requires the SOURCES tag. This will eventually allow us to add other ways of providing sources, but also allows us to change the behavior without breaking compatibility. The old signature uses a special, but non-unique temporary location inside the specified `bindir`, which conventionally is just the project's build directory. The new signature unconditionally uses the a unique temporary directory which is unconditionally within the project's build directory (which is no longer separately specified). This ensures that successive runs do not overwrite previous runs, will simplify debugging, and should also, eventually, allow us to execute multiple trials in parallel.
| * | | | | cmSystemTools: Add MakeTempDirectoryMatthew Woehlke2022-09-052-1/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a cross-platform wrapper over mkdtemp. This will allow us to create guaranteed-unique directories. On POSIX platforms, this is simply a wrapper over mkdtemp. On Windows, we take a brute-force approach using C++11's random facilities and relying on attempts to create an existing directory resulting in an error. (This approach is very possibly how mkdtemp is implemented internally, and should be suitable for any platform if needed, although at present it only uses a partial set of substitution characters since Windows likely implies a case-insensitive file system.)
* | | | | | Merge topic 'return-propagate-variables'Brad King2022-09-0711-17/+86
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 838a5fae23 return(): Propagate variables to result scope 8f0e1f2111 cmMakefile: add RaiseScope for list of variables Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Acked-by: Robert Maynard <robertjmaynard@gmail.com> Merge-request: !7634