diff options
Diffstat (limited to 'cmake/UseVala.cmake')
-rw-r--r-- | cmake/UseVala.cmake | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cmake/UseVala.cmake b/cmake/UseVala.cmake index 436a03ce..822ac005 100644 --- a/cmake/UseVala.cmake +++ b/cmake/UseVala.cmake @@ -146,9 +146,9 @@ function(vala_precompile output) endforeach(pkg ${ARGS_PACKAGES}) set(vala_define_opts "") - foreach(def ${ARGS_DEFINTIONS}) + foreach(def ${ARGS_DEFINITIONS}) list(APPEND vala_define_opts "--define=${def}") - endforeach(def ${ARGS_DEFINTIONS}) + endforeach(def ${ARGS_DEFINITIONS}) set(custom_vapi_arguments "") if(ARGS_CUSTOM_VAPIS) @@ -212,6 +212,7 @@ function(vala_precompile output) ${VALA_EXECUTABLE} ARGS --fast-vapi ${fast_vapi_file} + ${vala_define_opts} ${ARGS_OPTIONS} ${VALAC_FLAGS} ${in_file} @@ -326,4 +327,4 @@ function(vala_precompile output) ) endif(ARGS_FAST_VAPI) set(${output} ${out_files} PARENT_SCOPE) -endfunction(vala_precompile)
\ No newline at end of file +endfunction(vala_precompile) |