[vpn-help] CMake and build directory

Jean-Michel Caricand jean-michel.caricand at laposte.net
Sat Nov 30 02:29:11 CST 2013


Ok,

I've modified ike/source/iked/CMakeLists.txt file :

add_custom_command(
     SOURCE conf.token.ll
     COMMAND ${PATH_BIN_FLEX}
     ARGS -d -oconf.token.cpp 
${IKE_SOURCE_DIR}/source/iked/conf.token.ll   <--- here
     TARGET ConfParser
     OUTPUTS conf.token.cpp )

# Custom command for bison

add_custom_command(
     SOURCE conf.parse.yy
     COMMAND ${PATH_BIN_BISON}
     ARGS -oconf.parse.cpp ${IKE_SOURCE_DIR}/source/iked/conf.parse.yy 
<-- here
     TARGET ConfParser
     OUTPUTS conf.parse.cpp conf.parse.hpp location.hh position.hh 
stack.hh )


Jean-Michel


Le 30/11/2013 09:08, Jean-Michel Caricand a écrit :
> Hello,
>
> We want to build Shrew in build directory. Example :
>
> #mkdir build
> #cd build
> #cmake ..
> #make
>
> We've got these errors :
>
> ...
> [ 33%] Generating conf.token.cpp
> flex: can't open conf.token.ll
> make[2]: *** [source/iked/conf.token.cpp] Error 1
> make[1]: *** [source/iked/CMakeFiles/iked.dir/all] Error 2
> make: *** [all] Error 2
> jm at jm-laptop:~/PACKAGES/ike-2.2.1/build$
>
> We know autotools but not cmake. How can we fix these errors?
>
> Thanks,
>
> Jean-Michel
> _______________________________________________
> vpn-help mailing list
> vpn-help at lists.shrew.net
> https://lists.shrew.net/mailman/listinfo/vpn-help



More information about the vpn-help mailing list