I guess there's no way to make this work without adding a new option to add_custom_target()?
On Thu, Apr 4, 2013 at 7:26 AM, Rolf Eike Beer <[email protected]> wrote: > Micha Renner wrote: >> >> I would try >> >> add_custom_target( ${doc_target_name} >> DEPENDS ${generated_conf} >> COMMAND ${doxygen_exe} ${generated_conf} 2 > filename >> WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} >> COMMENT "Generating documentation using Doxygen" >> ) > > > This will just fail as > has no meaning to doxygen. The only reason this > works for you when you try that command in a terminal is that your > Bourne-like shell will interpret the "> filename" and not pass it to doxygen > at all. When you call doxygen like this from any generated project file > there will be no shell involved. > > Eike > > -- > > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
