Hi,

I don't know if it's the intended behaviour or not:


I create a file on build time with add_custom_command.
ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_BINARY_DIR}/my_source.cpp
                   COMMAND makeMySource ARGS ${CMAKE_BINARY_DIR}/my_source.cpp 
)

and add it to an executable:

add_executable(myExecutable ${CMAKE_BINARY_DIR}/my_source.cpp)


cmake does not complain when the file does not exist. For instance when I 
forgot the add_custom_command() or misspelled the filename. Instead I get an 
error from make.
I know there was a change from 2.6.0rc9 to 2.6.0final which fixed an error when 
a file was created on build-time but the add_custom_command() wasn't already 
defined.
I also don't know what 2.4 did in such a case.


Is this the correct behaviour?
Christian

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to