File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
perftests/Xcode/PerfTests Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -42,11 +42,16 @@ target_link_libraries(XcodePerfTests PRIVATE
42
42
# Run a custom command to fixup CMake's broken bundle CFBundleExecutable.
43
43
#
44
44
# http://www.cmake.org/Bug/view.php?id=15485
45
+ #
46
+ # It seems this is no longer an issue in Xcode 11.4/CMake 3.16.3, but leaving this
47
+ # workaround in place for good measure
48
+ get_target_property (xcode_perf_tests_output_directory XcodePerfTests LIBRARY_OUTPUT_DIRECTORY )
45
49
add_custom_command (
46
- COMMAND defaults write ${CMAKE_CURRENT_BINARY_DIR }/XcodePerfTests.xctest/Contents/Info.plist CFBundleExecutable XcodePerfTests && touch ${CMAKE_CURRENT_BINARY_DIR} /fixup-has-run
50
+ COMMAND plutil -replace CFBundleExecutable -string XcodePerfTests ${xcode_perf_tests_output_directory }/XcodePerfTests.xctest/Contents/Info.plist && touch ${CMAKE_CURRENT_BINARY_DIR} /fixup-has-run
47
51
COMMENT "Fixing up XcodePerfTests.xctest CFBundleExecutable..."
48
- OUTPUT ${CMAKE_CURRENT_BINARY_DIR } /XcodePerfTests.xctest/Contents/Info.plist )
52
+ OUTPUT ${xcode_perf_tests_output_directory } /XcodePerfTests.xctest/Contents/Info.plist )
49
53
add_custom_target (fixup-XcodePerfTests-bundle
50
54
ALL
51
- DEPENDS ${CMAKE_CURRENT_BINARY_DIR} /XcodePerfTests.xctest/Contents/Info.plist )
52
-
55
+ DEPENDS ${xcode_perf_tests_output_directory} /XcodePerfTests.xctest/Contents/Info.plist )
56
+ # Declare this dependency explicitly to avoid plutil failing because Info.plist is missing
57
+ add_dependencies (fixup-XcodePerfTests-bundle XcodePerfTests )
You can’t perform that action at this time.
0 commit comments