Commit 32d421d4904227bf96fee4f620acc2e5fe6bf94e

Ryan C. Gordon 2018-02-07T13:07:59

cmake: Minor cleanup (reuse a string we already calculated).

1
2
3
4
5
6
7
8
9
10
11
12
13
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: