diff options
author | Harry Mallon <hjmallon@gmail.com> | 2019-03-11 12:57:39 (GMT) |
---|---|---|
committer | Harry Mallon <hjmallon@gmail.com> | 2019-03-21 16:50:41 (GMT) |
commit | 413b71485a456456e204183f0d62e11e1ec3c1da (patch) | |
tree | 54a69634dd466a5b02846c29d018fc3c2ecbf892 /Tests/RunCMake/XcodeProject/XcodeSchemaProperty-check.cmake | |
parent | d2101e944a03056dc2180dd790ba85175e04d653 (diff) | |
download | CMake-413b71485a456456e204183f0d62e11e1ec3c1da.zip CMake-413b71485a456456e204183f0d62e11e1ec3c1da.tar.gz CMake-413b71485a456456e204183f0d62e11e1ec3c1da.tar.bz2 |
Xcode: Create Xcode schemes per target
Diffstat (limited to 'Tests/RunCMake/XcodeProject/XcodeSchemaProperty-check.cmake')
-rw-r--r-- | Tests/RunCMake/XcodeProject/XcodeSchemaProperty-check.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/XcodeProject/XcodeSchemaProperty-check.cmake b/Tests/RunCMake/XcodeProject/XcodeSchemaProperty-check.cmake index f675d81..88077b3 100644 --- a/Tests/RunCMake/XcodeProject/XcodeSchemaProperty-check.cmake +++ b/Tests/RunCMake/XcodeProject/XcodeSchemaProperty-check.cmake @@ -7,6 +7,13 @@ function(check_property property matcher) endif() endfunction() +function(expect_no_schema target) + set(schema "${RunCMake_TEST_BINARY_DIR}/XcodeSchemaProperty.xcodeproj/xcshareddata/xcschemes/${target}.xcscheme") + if(EXISTS ${schema}) + message(SEND_ERROR "Found unexpected schema ${schema}") + endif() +endfunction() + check_property("ADDRESS_SANITIZER" "enableAddressSanitizer") check_property("ADDRESS_SANITIZER_USE_AFTER_RETURN" "enableASanStackUseAfterReturn") check_property("THREAD_SANITIZER" "enableThreadSanitizer") @@ -31,3 +38,5 @@ check_property("ENVIRONMENT" [=[key="FOO"]=]) check_property("ENVIRONMENT" [=[value="foo"]=]) check_property("ENVIRONMENT" [=[key="BAR"]=]) check_property("ENVIRONMENT" [=[value="bar"]=]) + +expect_no_schema("NoSchema") |