summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CompileFeatures/CMP0128NewExtensionsStandardUnset-build-check.cmake
diff options
context:
space:
mode:
authorRaul Tambre <raul@tambre.ee>2022-01-22 15:40:10 (GMT)
committerRaul Tambre <raul@tambre.ee>2022-01-23 21:10:28 (GMT)
commit3a089cd2560db80f9534b9c86a0a7af495533466 (patch)
tree8c6d68fb76c0c2b4058b619443a947a97e6e5670 /Tests/RunCMake/CompileFeatures/CMP0128NewExtensionsStandardUnset-build-check.cmake
parente13dd52535bd68c33106dfc9027ce15cabf68ccf (diff)
downloadCMake-3a089cd2560db80f9534b9c86a0a7af495533466.zip
CMake-3a089cd2560db80f9534b9c86a0a7af495533466.tar.gz
CMake-3a089cd2560db80f9534b9c86a0a7af495533466.tar.bz2
CMP0128: Prefix test names with mode
Makes clear that these tests are for the NEW behaviour.
Diffstat (limited to 'Tests/RunCMake/CompileFeatures/CMP0128NewExtensionsStandardUnset-build-check.cmake')
-rw-r--r--Tests/RunCMake/CompileFeatures/CMP0128NewExtensionsStandardUnset-build-check.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/RunCMake/CompileFeatures/CMP0128NewExtensionsStandardUnset-build-check.cmake b/Tests/RunCMake/CompileFeatures/CMP0128NewExtensionsStandardUnset-build-check.cmake
new file mode 100644
index 0000000..abe293c
--- /dev/null
+++ b/Tests/RunCMake/CompileFeatures/CMP0128NewExtensionsStandardUnset-build-check.cmake
@@ -0,0 +1,12 @@
+foreach(flag @flags@)
+ string(FIND "${actual_stdout}" "${flag}" position)
+
+ if(NOT position EQUAL -1)
+ set(found TRUE)
+ break()
+ endif()
+endforeach()
+
+if(NOT found)
+ set(RunCMake_TEST_FAILED "No compile flags from \"@flags@\" found for CMAKE_@lang@_EXTENSIONS=@extensions_opposite@.")
+endif()