Use of edje_cc in cmake file

596 Views Asked by At

I tried to add a custom target in a cmake file to compile a .edc file with edje_cc automatically on build like mentioned here. Its part of an EFL project.

But I always get an error on compiling:

[    1s] [  0%] [ 50%] #### COMPILE EDC FILES ####
[    1s] make[2]: edje_cc: Command not found
[    1s] make[2]: *** [CMakeFiles/edje] Error 127
[    1s] make[1]: *** [CMakeFiles/edje.dir/all] Error 2
[    1s] make[1]: *** Waiting for unfinished jobs....

Can someone please tell me what to do that the edje_cc compiler is found at compiling?

1

There are 1 best solutions below

0
On

It seems that edje_cc is not installed on your machine. Modify CMakeLists.txt to add a check for finding edje_cc.

project("Edje")
find_program(EDJE_CC edje_cc)

if (NOT EDJE_CC)
   message(FATAL_ERROR "edje_cc is missing.")
endif()