ports/net-im/psi/files/patch-src_tabs_CMakeLists.txt
Jason E. Hale bf067dc10c net-im/psi: Fix build with ninja >= 1.12.0
Address a race condition where included headers generated by uic are
not created before they used in the build.

Not upstreaming this as the last release was in 2020 and the codebase
has diverged too much since then.

PR:		278693
Approved by:	portmgr (blanket)
2024-05-07 05:05:20 -04:00

10 lines
537 B
Text

Fix a race condition with ninja >= 1.12.0 where included headers have not
yet been generated by uic.
--- src/tabs/CMakeLists.txt.orig 2020-09-06 07:44:34 UTC
+++ src/tabs/CMakeLists.txt
@@ -22,3 +22,4 @@ target_include_directories(tabs PUBLIC ${CMAKE_CURRENT
add_library(tabs STATIC ${HEADERS} ${MOC_SOURCES} ${PLAIN_SOURCES})
target_link_libraries(tabs ${QT_LIBRARIES} ${iris_LIB} tools widgets)
target_include_directories(tabs PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
+add_dependencies(tabs build_ui_files)