summaryrefslogtreecommitdiff
path: root/cmake/helpers/EflMacros.cmake
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2017-01-25 16:02:25 -0200
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2017-01-25 19:29:20 -0200
commite4d0f78682b6227be68c3d00c42c4cc92c8822ef (patch)
tree5db19e535a6a81a9a81e1adde57b96cbad59cd4d /cmake/helpers/EflMacros.cmake
parentfd8865d0d048cc4b03adb7422a5cd67b5e33ba0a (diff)
cmake: if EOLIAN_BIN=ON, use built eolian_gen.
Diffstat (limited to 'cmake/helpers/EflMacros.cmake')
-rw-r--r--cmake/helpers/EflMacros.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/helpers/EflMacros.cmake b/cmake/helpers/EflMacros.cmake
index c212d70bc1..b41d96ef8f 100644
--- a/cmake/helpers/EflMacros.cmake
+++ b/cmake/helpers/EflMacros.cmake
@@ -1318,6 +1318,9 @@ function(EFL_CREATE_EO_RULES target generation_dir)
1318 1318
1319 #add the custom rule 1319 #add the custom rule
1320 if(file_eo_gen_files) 1320 if(file_eo_gen_files)
1321 if(EOLIAN_BIN STREQUAL ON)
1322 set(EOLIAN_BIN ${CMAKE_BINARY_DIR}/bin/eolian_gen)
1323 endif()
1321 add_custom_command( 1324 add_custom_command(
1322 OUTPUT ${file_eo_gen_files} 1325 OUTPUT ${file_eo_gen_files}
1323 COMMAND ${CMAKE_COMMAND} -E env "EFL_RUN_IN_TREE=1" ${EOLIAN_BIN} ${include_cmd} -o c:${generation_dir}/${filename}.c -o h:${generation_dir}/${filename}.h ${file} 1326 COMMAND ${CMAKE_COMMAND} -E env "EFL_RUN_IN_TREE=1" ${EOLIAN_BIN} ${include_cmd} -o c:${generation_dir}/${filename}.c -o h:${generation_dir}/${filename}.h ${file}