cmake: add generated files to a custom target (#5851)

This way, headers are only generated once .
This commit is contained in:
Anonymous Maarten authored and GitHub committed 2022-06-26 23:34:30 +02:00
1 parent 787dc260a8
commit fa39f73552
2 files changed
+22 -5

No files matched your search

+1
View File
@@ -632,6 +632,7 @@ macro(WaylandProtocolGen _SCANNER _CODE_MODE _XML _PROTL)
ARGS "${_CODE_MODE}" "${_XML}" "${_WAYLAND_PROT_C_CODE}"
)
list(APPEND SDL_GENERATED_HEADERS "${_WAYLAND_PROT_H_CODE}")
list(APPEND SOURCE_FILES "${_WAYLAND_PROT_C_CODE}")
endmacro()