[CMake] make[2]: *** No rule to make target 'sql/sql_yacc.cc', needed by 'libmysqld/CMakeFiles/sql_embedded.dir/__/sql/sql_yacc.cc.o'. Stop.

Kyle Edwards kyle.edwards at kitware.com
Fri Mar 1 09:58:01 EST 2019


On Fri, 2019-03-01 at 17:49 +0800, Yu, Mingli wrote:
> Hi Expert,
> 
> I encounter build issue when compile mariadb from 
> https://downloads.mariadb.org/mariadb/10.3.13/
> 
> 
> make[2]: *** No rule to make target 'sql/sql_yacc.cc', needed by 
> 'libmysqld/CMakeFiles/sql_embedded.dir/__/sql/sql_yacc.cc.o'.  Stop.
> 
> And the content of libmysqld/CMakeLists.txt as attached, any ideas?

I don't see anything in this file for actually *generating*
sql_yacc.cc. This should be generated by using add_custom_command() to
call yacc. Is that happening in another file?

Kyle


More information about the CMake mailing list