Skip to content

Commit 5bf5619

Browse files
authored
Fix template CMakeLists.txt so correct Info.plist is used. (#20564)
This small fix means that Xcode points to the correct Info.plist file (within the source tree) and not in the intermediate folder.
1 parent a8de1cc commit 5bf5619

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/cpp-template-default/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ if(APPLE)
142142
set_xcode_property(${APP_NAME} INSTALL_PATH "\$(LOCAL_APPS_DIR)")
143143

144144
if(MACOSX)
145-
set_target_properties(${APP_NAME} PROPERTIES MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/proj.ios_mac/mac/Info.plist")
145+
set_xcode_property(${APP_NAME} INFOPLIST_FILE "${CMAKE_CURRENT_SOURCE_DIR}/proj.ios_mac/mac/Info.plist")
146146
elseif(IOS)
147-
set_target_properties(${APP_NAME} PROPERTIES MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/proj.ios_mac/ios/Info.plist")
147+
set_xcode_property(${APP_NAME} INFOPLIST_FILE "${CMAKE_CURRENT_SOURCE_DIR}/proj.ios_mac/ios/Info.plist")
148148
set_xcode_property(${APP_NAME} ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon")
149149
endif()
150150

0 commit comments

Comments
 (0)