Blob Blame History Raw
From f771b2233d4c5157238b78b4d4e344815dd93ff4 Mon Sep 17 00:00:00 2001
From: Mamoru TASAKA <mtasaka@fedoraproject.org>
Date: Fri, 8 Mar 2024 16:10:48 +0900
Subject: [PATCH] vala: move generated C source from vala source properly

valac generates C source from vala source and outputs the result
on the same directory as vala source.
But cmake working directory may be different
from the vala source directory. So to move generated source properly,
specify the origination directory for mv command explicitly.
---
 Dbus/interfaces/vala/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Dbus/interfaces/vala/CMakeLists.txt b/Dbus/interfaces/vala/CMakeLists.txt
index d3047694e..f3d7d5fd2 100644
--- a/Dbus/interfaces/vala/CMakeLists.txt
+++ b/Dbus/interfaces/vala/CMakeLists.txt
@@ -26,7 +26,7 @@ if ("${VALAC_FOUND}" STREQUAL "TRUE")
 		-o ${CDAPPLET}.c
 		${CMAKE_CURRENT_SOURCE_DIR}/${CDAPPLET}.vala)
 	# it seems that valac can only produce the output c file into the current directory...
-	execute_process(COMMAND mv ${CDAPPLET}.c ${VALA_DIR}/src/${CDAPPLET}.c)
+	execute_process(COMMAND mv ${CMAKE_CURRENT_SOURCE_DIR}/${CDAPPLET}.c ${VALA_DIR}/src/${CDAPPLET}.c)
 	
 	# valac is a bad boy, it messes up the signal names.
 	execute_process(COMMAND