From 99df39229cc6a0c5e447705ddc577e180b82c04c Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 13 Jul 2010 06:13:06 +0200 Subject: Fixed a ValaPrecompile bug --- cmake/vala/ValaPrecompile.cmake | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'cmake/vala') diff --git a/cmake/vala/ValaPrecompile.cmake b/cmake/vala/ValaPrecompile.cmake index f69a096..e7c43b2 100644 --- a/cmake/vala/ValaPrecompile.cmake +++ b/cmake/vala/ValaPrecompile.cmake @@ -136,10 +136,14 @@ macro(vala_precompile output) list(APPEND header_arguments "--internal-header=${ARGS_GENERATE_HEADER}_internal.h") endif(ARGS_GENERATE_HEADER) - add_custom_command(OUTPUT ${out_files} + add_custom_command(OUTPUT ${out_files} + COMMAND + ${CMAKE_COMMAND} + -E + remove + ${out_files} COMMAND ${VALA_EXECUTABLE} - ARGS "-C" ${header_arguments} ${vapi_arguments} -- cgit v1.2.3