diff options
author | Craig Scott <craig.scott@crascit.com> | 2021-04-11 08:05:14 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2021-04-11 08:06:16 (GMT) |
commit | f62a2bf44f392f6a23836848714ed36cd02975af (patch) | |
tree | 704729842548d71750291fb1390e323950b0a6de /Tests/RunCMake/XcodeProject-Embed/EmbedFrameworksFlagsOff-check.cmake | |
parent | 6e7ff52af74cfbff15ded5c3aba7097499dffd32 (diff) | |
download | CMake-f62a2bf44f392f6a23836848714ed36cd02975af.zip CMake-f62a2bf44f392f6a23836848714ed36cd02975af.tar.gz CMake-f62a2bf44f392f6a23836848714ed36cd02975af.tar.bz2 |
Tests: Factor out XcodeProject-Embed check function findAttribute()
Diffstat (limited to 'Tests/RunCMake/XcodeProject-Embed/EmbedFrameworksFlagsOff-check.cmake')
-rw-r--r-- | Tests/RunCMake/XcodeProject-Embed/EmbedFrameworksFlagsOff-check.cmake | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/Tests/RunCMake/XcodeProject-Embed/EmbedFrameworksFlagsOff-check.cmake b/Tests/RunCMake/XcodeProject-Embed/EmbedFrameworksFlagsOff-check.cmake index 9cc03b9..dbd3e87 100644 --- a/Tests/RunCMake/XcodeProject-Embed/EmbedFrameworksFlagsOff-check.cmake +++ b/Tests/RunCMake/XcodeProject-Embed/EmbedFrameworksFlagsOff-check.cmake @@ -1,14 +1,4 @@ -function(findAttribute project attr) - execute_process( - COMMAND grep ${attr} ${RunCMake_TEST_BINARY_DIR}/${project}.xcodeproj/project.pbxproj - OUTPUT_VARIABLE output_var - RESULT_VARIABLE result_var - ) +include(${CMAKE_CURRENT_LIST_DIR}/findAttribute.cmake) - if(NOT result_var) - set(RunCMake_TEST_FAILED "${attr} attribute is set" PARENT_SCOPE) - endif() -endfunction() - -findAttribute(${test} "RemoveHeadersOnCopy") -findAttribute(${test} "CodeSignOnCopy") +findAttribute(${test} "RemoveHeadersOnCopy" FALSE) +findAttribute(${test} "CodeSignOnCopy" FALSE) |