[CMake] (no subject)

Thomas Taranowski tom at baringforge.com
Thu Aug 29 22:24:37 EDT 2013


I'm running into somewhat of an arcane problem at the moment.

The setup:
* I have a source file that is autogenerated.  In this case it is
event_log_msg_if.ac.cpp.
* I have marked the cpp as autogenerated via the
'set_source_files_properties' api
* I have an add_library(foo /path/to/file/event_log_msg_if.ac.cpp)

Any idea why I'm getting an "No rule to make target" for this? It looks
like cmake doesn't have a rule to build .cpp files.  Could the .ac.cpp
cause an issue?


Excerpt of output:

Scanning dependencies of target event_log
[ 65%] Building CXX object
event_log/CMakeFiles/event_log.dir/local/ac/event_log_msg_if.ac.cpp.o
make[2]: *** No rule to make target
`../event_log/event_log/local/ac/event_log_msg_if.ac.cpp', needed by
`event_log/CMakeFiles/event_log.dir/event_log/local/ac/event_log_msg_if.ac.cpp.o'.
 Stop.
make[1]: *** [event_log/CMakeFiles/event_log.dir/all] Error 2



Thomas Taranowski | 425-442-9209 | skype: thomas.taranowski |
baringforge.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130829/2963b3b6/attachment.htm>


More information about the CMake mailing list