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
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to