[CMake] Super build project with the same library but different version

Jonathan Dumaresq jdumaresq at cimeq.qc.ca
Thu Jun 28 07:51:06 EDT 2018


Hi,


Le 6/28/2018 à 7:29 AM, Innokentiy Alaytsev a écrit :
> Hello!
>
> The  DownloadProject CMake module
> <https://crascit.com/2015/07/25/cmake-gtest/>   may be of use in your
> situation.
Already test this idea and is' mostly work. I will take a look again.
> Basically, you can add the external project with the
> add_subdirectory() function in the main build tree. However, there might be
> some problems with two targets with the same name, i.e. CppUTest 3.7 and
> CppUTest 3.8 will most likely both create the CppUTest target.
As you guest, 2 CppUTest target is created and CMAKE give up.
> Unfortunately, I don't know, how to resolve this issue. The best idea I have
> is to use v3.8 for bort test suits.
The thing is that I do not want to have this dependency information in 
the top level CMakeLists.txt file.

Regards
Jonathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20180628/e8c445cc/attachment-0001.html>


More information about the CMake mailing list