Skip to content

Conversation

@Shatur
Copy link

@Shatur Shatur commented Aug 28, 2021

OUTPUT argument in add_custom_command can accept several variables with filenames or a single list variable with several filenames. But since two lists were passed there (SOURCES_FILE_LIST and HEADERS_FILE_LIST), each of them was counted as single file path. This caused the bindings to be recompiled after every CMake reconfiguration (because path was wrong).
In this PR I fixed it by using a single command to obtain headers and source files into GENERATED_FILES_LIST (there is no sense to separate them).

@Shatur Shatur changed the title Escape lists Fix add_custom_command OUTPUT paths Aug 29, 2021
@vnen vnen merged commit 13e5453 into vnen:gdnative-extensions Aug 31, 2021
@Shatur Shatur deleted the escape-lists branch August 31, 2021 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants