<div>Hi !</div><div><br></div>Your problem does look like a bug,<div><br><div>Which version of CMake are you using ?</div><div><br></div><div>Where do you set the do_scoring variables ? Is it in a higher CMakeLists.txt ?</div>
<div>Are you sure that the Release configuration that you used is not considered as one of the <b style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:11.199999809265137px;line-height:22px;text-align:justify;background-color:rgb(255,255,255)"><code>DEBUG_CONFIGURATIONS ?</code></b></div>
<div><br></div><div>Kind regards,<br><br><div class="gmail_quote">On Sun, Oct 14, 2012 at 8:59 PM, Vyacheslav Karamov <span dir="ltr"><<a href="mailto:vkaramov@yandex.ru" target="_blank">vkaramov@yandex.ru</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've found annoying bug in Cmake 2.8.8 for Linux. I tried to submit it to Cmake bug tracker, but I couldn't register.<br>
<br>
My target which is dynamic library, uses some static libs:<br>
<br>
target_link_libraries(${lib_name}<br>
debug ${do_scoring_debug}<br>
optimized ${do_scoring}<br>
)<br>
<br>
When I tried to build Release configuration of my library, build fails because do_scoring_debug == NOTFOUND at that time.<br>
It seems strange to me, because linker doesn't need *Debug* version of ${do_scoring} when building *Release* version of target.<br>
<br>
I've found workaraound<br>
<br>
if (NOT do_scoring_debug)<br>
set (do_scoring_debug do_scoring)<br>
endif()<br>
<br>
but it seems to strange why should I need it.<br>
<br>
___<br>
WBR,<br>
Vyacheslav Karamov.<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><br clear="all"><div><br></div>-- <br> Amine<br>
</div></div>