mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
- Change default CPS install path on Windows from `cps` to `cps/<name>`, per community recommendation that only paths containing the package name should be considered as "officially" supported search locations (see https://github.com/cps-org/cps/issues/79#issuecomment-2831102822). - Change `export` to write to a subdirectory that allows the build tree to be used as a search root. - Change SBOM destinations to be consistent with the preceding. Issue: #27785
22 lines
804 B
CMake
22 lines
804 B
CMake
include(${CMAKE_CURRENT_LIST_DIR}/Assertions.cmake)
|
|
|
|
set(out_dir "${RunCMake_BINARY_DIR}/MinimalVersion-build")
|
|
|
|
file(READ "${out_dir}/cps/foo1/foo1.cps" content)
|
|
expect_value("${content}" "foo1" "name")
|
|
expect_value("${content}" "1.0" "version")
|
|
expect_missing("${content}" "compat_version")
|
|
expect_missing("${content}" "version_schema")
|
|
|
|
file(READ "${out_dir}/cps/foo2/foo2.cps" content)
|
|
expect_value("${content}" "foo2" "name")
|
|
expect_value("${content}" "1.5" "version")
|
|
expect_value("${content}" "1.0" "compat_version")
|
|
expect_missing("${content}" "version_schema")
|
|
|
|
file(READ "${out_dir}/cps/foo3/foo3.cps" content)
|
|
expect_value("${content}" "foo3" "name")
|
|
expect_value("${content}" "1.0" "version")
|
|
expect_missing("${content}" "compat_version")
|
|
expect_value("${content}" "simple" "version_schema")
|