[CMake] custom commands and dependenciy problems

Bradley Lowekamp blowekamp at mail.nih.gov
Tue Jun 14 11:40:20 EDT 2005


I have code similar to this and I don't under stand why it is not 
working:


ADD_CUSTOM_TARGET(gen DEPENDS ${SOME_GENERATED_FILES})

SET_SOURCE_FILES_PROPERTIES(${SOME_SRC_FILES} PROPERTIES OBJECT_DEPENDS 
gen)

ADD_LIBRARY(my ${SOME_SRC_FILES})


I am using make files on linux, a recent CVS version (last week). There 
make error message I am getting is "No rule to make target 'gen', 
needed by 'mysrc.cpp'. Stop. " Am I not under standing something or 
have I encountered a bug or something?

Thanks,
Brad


========================================================
Bradley Lowekamp
Management Systems Designers Contractor for
Office of High Performance Computing and Communications
National Library of Medicine
'blowekamp at mail.nih.gov



More information about the CMake mailing list