Yes, just as if you were calling add_library twice, once with SHARED
and once with STATIC, you'd need to name the targets differently.


On Mon, Jun 25, 2012 at 8:53 AM, Stephen Kelly <[email protected]> wrote:
>
> Hi there,
>
> I am reading
>
> http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/3478/focus=3522
>
> and
>
> http://thread.gmane.org/gmane.comp.lib.qt.devel/3196/focus=3197
>
> in which it is proposed to use multiple build of Qt to create a single
> installation of both static and shared libs (on non-Windows only).
>
> It seems to not be possible to create two CMake imported targets of the same
> name and different type, so is my option only to create separate targets
> named such as Qt5::Core, Qt5::Core_SHARED and Qt5::Core_STATIC?
>
> Thanks,
>
> Steve.
>
>
> --
>
> 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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
--

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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to