summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMakePackage
Commit message (Collapse)AuthorAgeFilesLines
* find_package: Save/restore PACKAGE_PREFIX_DIRCraig Scott2024-04-193-0/+51
| | | | | | | | | | | Package configuration files generated by `configure_package_config_file` set this variable in `@PACKAGE_INIT@` and then use it later. There may be intervening calls to `find_package`, e.g., via `find_dependency`. If the loaded package also used `configure_package_config_file`, it may change the value of `PACKAGE_PREFIX_DIR`. Explicitly save and restore the value to avoid this. Fixes: #25827
* generate_apple_*_selection_file: Save/restore PACKAGE_PREFIX_DIRCraig Scott2024-04-193-0/+60
| | | | Issue: #25827
* Tests/RunCMake/CMakePackage: Define variable closer to where it is usedBrad King2024-04-151-3/+4
|
* CMakePackageConfigHelpers: Restore undocumented PACKAGE_PREFIX_DIR variableBrad King2024-04-115-102/+0
| | | | | | | | | | | Revert commit 6ddf8712cd (CMakePackageConfigHelpers: Use unique variable name for pkg prefix, 2024-03-30, v3.29.1~8^2). It regressed existing projects that rely on the undocumented `PACKAGE_PREFIX_DIR` variable in package configuration files generated by `CMakePackageConfigHelpers`. Fixes: #25873 Fixes: #25885 Issue: #25827
* CMakePackageConfigHelpers: Use unique variable name for pkg prefixCraig Scott2024-03-315-0/+102
| | | | Fixes: #25827
* generate_apple_*_selection_file: Add option to capture errorsBrad King2024-03-1911-0/+75
| | | | | | | Add an option to capture error messages in a variable instead of terminating with a fatal error. Fixes: #25778
* generate_apple_architecture_selection_file: Document $(ARCHS_STANDARD) supportBrad King2024-03-194-1/+6
| | | | | | Also add a test case. Fixes: #25780
* generate_apple_architecture_selection_file: Simplify signatureBrad King2024-03-191-3/+3
| | | | | | | Allow callers to pass multiple values to list-valued arguments instead of putting the entire list in a single quoted argument. Fixes: #25779
* Tests/RunCMake/CMakePackage: Fix Apple architecture selection argument orderBrad King2024-03-191-1/+4
| | | | | Call `generate_apple_architecture_selection_file` with matching order in `SINGLE_ARCHITECTURES` and `SINGLE_ARCHITECTURE_INCLUDE_FILES`.
* Tests/RunCMake/CMakePackage: Add architecture i386 for macOS on Xcode < 10Brad King2024-03-191-4/+10
| | | | Use every architecture each version of Xcode has in `$(ARCHS_STANDARD)`.
* Tests: Enable RunCMake.CMakePackage visionOS cases with Xcode 15.2Brad King2024-02-092-6/+5
| | | | | | | | | Xcode 15.2 officially includes the visionOS SDKs. Fix a typo from commit 2a398cd9b6 (CMakePackageConfigHelpers: Clarify generate_apple_*_selection_file signatures, 2024-01-04) to make it pass. Issue: #25266
* CMakePackageConfigHelpers: Clarify generate_apple_*_selection_file signaturesBrad King2024-01-052-13/+13
| | | | | | | | | | | | | | | | | | | The helpers added by: * commit 37bc3400cd (CMakePackageConfigHelpers: Add generate_apple_platform_selection_file(), 2023-11-03) * commit 4ac5a2f866 (CMakePackageConfigHelpers: Add generate_apple_architecture_selection_file(), 2023-12-19) were worded in terms of including package configuration files, but the actual functionality is to include files *from* package configuration files. The included files do not themselves need to be usable as package configuration files. Rename the options and clarify the documentation accordingly. Issue: #25262 Issue: #25516
* CMakePackageConfigHelpers: Add generate_apple_architecture_selection_file()Brad King2023-12-1910-2/+46
| | | | | | | Add a helper to select architecture-specific implementations of a package on an Apple-specific platform. Fixes: #25516
* generate_apple_platform_selection_file: Add INSTALL_PREFIX optionBrad King2023-12-191-0/+1
| | | | This is necessary to forward to `configure_package_config_file`.
* Tests: Verify generate_apple_platform_selection_file file pathsBrad King2023-12-1910-0/+12
|
* CMakePackageConfigHelpers: Clarify Apple platform selection usage errorBrad King2023-12-184-0/+15
| | | | `generate_apple_platform_selection_file` requires `INSTALL_DESTINATION`.
* Tests: Cover generate_apple_platform_selection_file on all platformsBrad King2023-12-1626-0/+173
The test added by commit 37bc3400cd (CMakePackageConfigHelpers: Add generate_apple_platform_selection_file(), 2023-11-03) covers importing only on macOS, and is specific to the xcframework test case. Add a dedicated test for `generate_apple_platform_selection_file` that covers export and import on all platforms.