cmake: Minor cleanup (reuse a string we already calculated).
diff --git a/cmake/sdlchecks.cmake b/cmake/sdlchecks.cmake
index 5dde86c..91e2f97 100644
--- a/cmake/sdlchecks.cmake
+++ b/cmake/sdlchecks.cmake
@@ -610,7 +610,7 @@ macro(WaylandProtocolGen _SCANNER _XML _PROTL)
ARGS code "${_XML}" "${_WAYLAND_PROT_C_CODE}"
)
- set(SOURCE_FILES ${SOURCE_FILES} "${CMAKE_CURRENT_BINARY_DIR}/wayland-generated-protocols/${_PROTL}-protocol.c")
+ set(SOURCE_FILES ${SOURCE_FILES} "${_WAYLAND_PROT_C_CODE}")
endmacro()
# Requires: