Files
CMake/Tests/RunCMake/XcodeProject-Embed/EmbedFrameworksFlagsOff-check.cmake
Gusts Kaksis 5651901c54 Xcode: add support for embedding frameworks
This commit also prepares for embedding things other than
frameworks. In the future, we may want to embed resources and
other types supported by Xcode, so the target properties have
been documented in a way that clearly signals the future intent.
2020-11-28 15:36:24 +11:00

15 lines
420 B
CMake

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
)
if(NOT result_var)
set(RunCMake_TEST_FAILED "${attr} attribute is set" PARENT_SCOPE)
endif()
endfunction()
findAttribute(${test} "RemoveHeadersOnCopy")
findAttribute(${test} "CodeSignOnCopy")