Hi Nico.<br><br>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.<br><br>Petr<br><br><div class="gmail_quote">
On Tue, Sep 11, 2012 at 11:26 AM, Nico Schlömer <span dir="ltr"><<a href="mailto:nico.schloemer@gmail.com" target="_blank">nico.schloemer@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
I'm having problems linking shared libraries on Ubuntu 12.10 beta1<br>
here (shipping with CMake 2.8.9), and found that this is related to<br>
TARGET_SUPPORTS_SHARED_LIBS not being set. This<br>
<br>
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)<br>
GET_PROPERTY(test GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS)<br>
MESSAGE("<" ${test} ">")<br>
<br>
prints "<>".<br>
Do I need to manually set a target, or does a later command, e.g. the<br>
instantiation of a project set this?<br>
<br>
Cheers,<br>
Nico<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br>