[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    Re: [CMake] Using FetchContent fails when two subprojects have a target with the same name
From:       Timothy Wrona <tjwrona1992 () gmail ! com>
Date:       2019-02-20 4:36:16
Message-ID: CAGrOMv2_GOysvd9qryV28__wD3wOvi2B0t1roNnQ3k1+ztWzPA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


(Included cmake-developers list as well in case this may have just been
something that should work that was overlooked with the FetchContent module)

On Tue, Feb 19, 2019 at 11:32 PM Timothy Wrona <tjwrona1992@gmail.com>
wrote:

> I am having an issue with using FetchContent to grab two subprojects that
> both contain a "doxygen" target to build the documentation.
>
> Both of these subprojects need to be able to be built independently and
> when built on their own they compile fine (along with their documentation),
> but when I pull them into one project using "FetchContent" I get an error
> saying I can't define the "doxygen" target more than once.
>
> I imagine this kind of issue would come up all of the time when using a
> "superbuild" pattern. Is there a typical way of handling this?
>

[Attachment #5 (text/html)]

<div dir="ltr">(Included cmake-developers list as well in case this may have just \
been something that should work that was overlooked with the FetchContent \
module)</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, \
Feb 19, 2019 at 11:32 PM Timothy Wrona &lt;<a \
href="mailto:tjwrona1992@gmail.com">tjwrona1992@gmail.com</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I am \
having an issue with using FetchContent to grab two subprojects that both contain a \
&quot;doxygen&quot; target to build the documentation.<div><br></div><div>Both of \
these subprojects need to be able to be built independently and when built on their \
own they compile fine (along with their documentation), but when I pull them into one \
project using &quot;FetchContent&quot; I get an error saying I can&#39;t define the \
&quot;doxygen&quot; target more than once.</div><div><br></div><div>I imagine this \
kind of issue would come up all of the time when using a &quot;superbuild&quot; \
pattern. Is there a typical way of handling this?</div></div> </blockquote></div>



-- 

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:
https://cmake.org/mailman/listinfo/cmake



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic