Tests: Improve RunCMake.export expected output matching robustness

The "multiple other export sets" message may wrap lines differently
depending on the path to the test.
This commit is contained in:
makise-homura
2023-12-22 02:12:20 +03:00
committed by Brad King
parent 3377141c8f
commit b7f9d24b40
@@ -1,7 +1,7 @@
CMake Error in CMakeLists.txt: CMake Error in CMakeLists.txt:
export called with target "exported" which requires target "doubleexported" export called with target "exported" which requires target "doubleexported"
that is not in this export set, but in multiple other export sets: that is not in this export set, but in multiple other export sets:.*
.*/Tests/RunCMake/export/DependOnDoubleExport-build/exportset.cmake, .*/Tests/RunCMake/export/DependOnDoubleExport-build/exportset.cmake,.*
.*/Tests/RunCMake/export/DependOnDoubleExport-build/manual.cmake. .*/Tests/RunCMake/export/DependOnDoubleExport-build/manual.cmake.
+ +
An exported target cannot depend upon another target which is exported An exported target cannot depend upon another target which is exported