mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 04:40:56 -06:00
In commit 5651901c54 (Xcode: add support for embedding frameworks,
2020-10-24, v3.20.0-rc1~402^2) we incorrectly reused `PBXBuildFile`
instances when the same framework is embedded in multiple targets,
causing target-specific settings to conflict.
Fixes: #26438
10 lines
468 B
CMake
10 lines
468 B
CMake
set(in_app1 "${RunCMake_TEST_BINARY_DIR}/Debug/app1.app/Contents/Frameworks/TestLib.framework/Headers")
|
|
if(NOT EXISTS "${in_app1}")
|
|
string(APPEND RunCMake_TEST_FAILED "TestLib was embedded without Headers in:\n ${in_app1}\n")
|
|
endif()
|
|
|
|
set(in_app2 "${RunCMake_TEST_BINARY_DIR}/Debug/app2.app/Contents/Frameworks/TestLib.framework/Headers")
|
|
if(EXISTS "${in_app2}")
|
|
string(APPEND RunCMake_TEST_FAILED "TestLib was embedded with Headers in:\n ${in_app2}\n")
|
|
endif()
|