summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2010-07-13 06:13:06 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2010-07-13 06:13:06 +0200
commit99df39229cc6a0c5e447705ddc577e180b82c04c (patch)
treec624b40d8f668299b709983bcfe710ec81fc1783 /cmake
parent6a93cb6f2c014e4092f1ada75d2f37ac082f763b (diff)
downloadephraim-99df39229cc6a0c5e447705ddc577e180b82c04c.tar
ephraim-99df39229cc6a0c5e447705ddc577e180b82c04c.zip
Fixed a ValaPrecompile bug
Diffstat (limited to 'cmake')
-rw-r--r--cmake/erlang/ErlangTarget.cmake1
-rw-r--r--cmake/vala/ValaPrecompile.cmake8
2 files changed, 6 insertions, 3 deletions
diff --git a/cmake/erlang/ErlangTarget.cmake b/cmake/erlang/ErlangTarget.cmake
index 3a21800..2afbc7a 100644
--- a/cmake/erlang/ErlangTarget.cmake
+++ b/cmake/erlang/ErlangTarget.cmake
@@ -18,7 +18,6 @@ macro(erl_target name)
${out_file}
COMMAND
${ERLC_EXECUTABLE}
- ARGS
"-o" ${CMAKE_CURRENT_BINARY_DIR}
${ARGS_OPTIONS}
${in_file}
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}