Hi, is there a way to inform cmake that it should ignore the return code
of the command specified with add_custom_command? I want the command to
be successful, even if it returns something different than 0.

For instance:
add_custom_command(OUTPUT text.cpp COMMAND false)
add_executable(test main.cpp text.cpp)

I'm using on linux, using Makefiles, and it bails off because 'false' is
returning 1. What if that's an expected behavior? Is there any way to
circumvent this?

Regards,
rod

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to