[CMake] TARGET_SUPPORTS_SHARED_LIBS not set

Petr Kmoch petr.kmoch at gmail.com
Tue Sep 11 05:39:57 EDT 2012


Hi Nico.

I don't know, but I would assume this (just like a plethora of other
internals) is set up by a project() call. The rule of thumb is to call
project() a soon as you can.

Petr

On Tue, Sep 11, 2012 at 11:26 AM, Nico Schlömer <nico.schloemer at gmail.com>wrote:

> Hi all,
>
> I'm having problems linking shared libraries on Ubuntu 12.10 beta1
> here (shipping with CMake 2.8.9), and found that this is related to
> TARGET_SUPPORTS_SHARED_LIBS not being set. This
>
> CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
> GET_PROPERTY(test GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS)
> MESSAGE("<" ${test} ">")
>
> prints "<>".
> Do I need to manually set a target, or does a later command, e.g. the
> instantiation of a project set this?
>
> Cheers,
> Nico
> --
>
> 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://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120911/f239bddd/attachment-0001.htm>


More information about the CMake mailing list