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

Innokentiy Alaytsev alaitsev at gmail.com
Thu Jun 28 07:29:38 EDT 2018


Hello!

The  DownloadProject CMake module
<https://crascit.com/2015/07/25/cmake-gtest/>   may be of use in your
situation. 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.
Unfortunately, I don't know, how to resolve this issue. The best idea I have
is to use v3.8 for bort test suits.



--
Sent from: http://cmake.3232098.n2.nabble.com/


More information about the CMake mailing list