Permalink
Browse files

Handle directory path for CUSTOM_VAPI correctly.

  • Loading branch information...
1 parent 90887b0 commit 015fa8d2c14a7dcbed10ba51c4dcda187ae26d6e Dzhelil Rufat committed with Jun 19, 2010
Showing with 8 additions and 1 deletion.
  1. +8 −1 vala/ValaPrecompile.cmake
@@ -125,6 +125,13 @@ macro(vala_precompile output)
list(APPEND ${output} ${out_file})
endforeach(src ${ARGS_DEFAULT_ARGS})
+ set(custom_vapi_arguments "")
+ if(ARGS_CUSTOM_VAPIS)
+ foreach(vapi ${ARGS_CUSTOM_VAPIS})
+ list(APPEND custom_vapi_arguments ${CMAKE_CURRENT_SOURCE_DIR}/${vapi})
+ endforeach(vapi ${ARGS_CUSTOM_VAPIS})
+ endif(ARGS_CUSTOM_VAPIS)
+
set(vapi_arguments "")
if(ARGS_GENERATE_VAPI)
list(APPEND out_files "${DIRECTORY}/${ARGS_GENERATE_VAPI}.vapi")
@@ -156,7 +163,7 @@ macro(vala_precompile output)
${vala_pkg_opts}
${ARGS_OPTIONS}
${in_files}
- ${ARGS_CUSTOM_VAPIS}
+ ${custom_vapi_arguments}
DEPENDS
${in_files}
${ARGS_CUSTOM_VAPIS}

0 comments on commit 015fa8d

Please sign in to comment.