Hey,

2010/7/19 OvermindDL1 <[email protected]>:
> I think I found another CMake build problem.  When I put the ascidoc
> location in the CMake configuration, it then tries to build *two* doc
> projects, when there is already a doc project in the solution.  In the
> root directory CMakeList.txt file, there is this segment starting at
> line 183:

I remember that I struggled with this so it turns out that the
solution I cooked up is not kosjer at all...

What CMake version are you using ?

Does it help to move the 'ADD_CUSTOM_TARGET(doc)' out of the IF and
MACRO scopes, and call this only once globally ?

Regards,
koen

> """
> IF (ASCIIDOC_FOUND)
>  MACRO (ASCIIDOC_FILE target infile outfile)
>    ADD_CUSTOM_TARGET(${target}
>       ${ASCIIDOC_EXECUTABLE} -a toc -a numbered -o ${outfile} ${infile}
>       COMMENT "Asciidoc ${infile}")
>    ADD_CUSTOM_TARGET(doc)
>    ADD_DEPENDENCIES(doc ${target})
>  ENDMACRO (ASCIIDOC_FILE)
> ENDIF (ASCIIDOC_FOUND)
>
> IF (DOXYGEN_FOUND)
>  ADD_CUSTOM_TARGET(doxygen
>    ${DOXYGEN_EXECUTABLE}
>    WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
>    COMMENT "Doxygen ...")
>  ADD_CUSTOM_TARGET(doc)
>  ADD_DEPENDENCIES(doc doxygen)
>  ADD_CUSTOM_TARGET(doxygen-examples
>    ${DOXYGEN_EXECUTABLE}
>    WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/examples
>    COMMENT "Doxygen for examples ...")
>  ADD_DEPENDENCIES(doc doxygen-examples)
>  ENDIF (DOXYGEN_FOUND)
> """

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to