mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-10 07:40:03 -06:00
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.
15 lines
417 B
CMake
15 lines
417 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(result_var)
|
|
set(RunCMake_TEST_FAILED "${attr} attribute not set" PARENT_SCOPE)
|
|
endif()
|
|
endfunction()
|
|
|
|
findAttribute(${test} "RemoveHeadersOnCopy")
|
|
findAttribute(${test} "CodeSignOnCopy")
|