$OpenBSD: patch-core_showfoto_CMakeLists_txt,v 1.1 2019/06/16 15:14:56 rsadowski Exp $

Use generated Info.plist dependency. Fixes a problem in combination with Ninja
v1.9.0 because of duplicate rules for generating Info.plist.

Index: core/showfoto/CMakeLists.txt
--- core/showfoto/CMakeLists.txt.orig
+++ core/showfoto/CMakeLists.txt
@@ -60,6 +60,7 @@ add_executable(showfoto ${showfoto_SRCS}
 )
 
 add_dependencies(showfoto digikam-gitversion)
+add_dependencies(showfoto generate_info_header)
 
 # To fill plist XML file for OSX #####################################################
 
@@ -68,7 +69,6 @@ set(MACOSX_APP_DESCRIPTION             "Stand alone Ph
 set(MACOSX_BUNDLE_LONG_VERSION_STRING  ${DIGIKAM_VERSION_STRING})
 set(MACOSX_BUNDLE_SHORT_VERSION_STRING ${DIGIKAM_VERSION_SHORT})
 set(MACOSX_BUNDLE_BUNDLE_VERSION       ${DIGIKAM_VERSION_STRING})
-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/templates/Info.plist.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/Info.plist)
 set_target_properties(showfoto PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_BINARY_DIR}/Info.plist)
 
 target_link_libraries(showfoto
