Hi,

On Mon, Dec 29, 2014 at 09:04:14PM +0100, Vincent Sourin wrote:
>         bison_target(parser parser.y parser.c )
>         flex_target(scanner lexer.l lexer.c)
Side note: I'd rather use 
        bison_target(parser parser.y ${CMAKE_CURRENT_BINARY_DIR}/parser.c)
        flex_target(scanner lexer.l ${CMAKE_CURRENT_BINARY_DIR}/lexer.c)
then out of tree builds will also work ;).

>         set(${MODULE_PREFIX}_PARSER_SRCS
>               ${BISON_parser_OUTPUTS}
>               ${FLEX_lexer_OUTPUTS}
not sure but shouldn't that be:
${FLEX_scanner_OUTPUTS} instead of ${FLEX_lexer_OUTPUTS}?

> But when I run "cmake -DWITH_SOME_VAR .",  I've got this error message :
> CMake Error at libfreerdp/CMakeLists.txt:293 (add_library):
You might want to use -DWITH_SOME_VAR=ON instead. Don't know which
version of cmake you run but if I try to define a variable without a
value I get:

$> cmake -DWITH_SOME_VAR .
Parse error in command line argument: -DWITH_SOME_VAR
Should be: VAR:type=value
CMake Error: No cmake script provided.
CMake Error: Problem processing arguments. Aborting.

Best regards,
Bernhard

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
FreeRDP-devel mailing list
FreeRDP-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freerdp-devel

Reply via email to