This was fixed yesterday in CMake &#39;next&#39; -- please try it out if you have time...<div><br></div><div>See:</div><div><a href="http://public.kitware.com/Bug/view.php?id=10611">http://public.kitware.com/Bug/view.php?id=10611</a></div>
<div><a href="http://public.kitware.com/Bug/view.php?id=11207">http://public.kitware.com/Bug/view.php?id=11207</a></div><div><br></div><div><br></div><div>HTH,</div><div>David</div><div><br><br><div class="gmail_quote">On Tue, Sep 7, 2010 at 4:09 AM, J Decker <span dir="ltr">&lt;<a href="mailto:d3ck0r@gmail.com">d3ck0r@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">-------<br>
PROJECT( basename.stop )<br>
set( ${SOURCES} )<br>
add_executable(${PROJECT_NAME} ${SOURCES})<br>
<br>
<br>
just building a windows exectuable with a . in the name...<br>
<br>
  $(TargetFileName)=basename.exe<br>
  $(TargetName)=basename<br>
  $(TargetExt)=.exe<br>
<br>
<br>
that is without overriding SUFFIX.    the &#39;.stop&#39; is dropped from the<br>
desired target filename &#39;basename.stop.exe&#39;<br>
<br>
<br>
<br>
To recap<br>
--------<br>
    add_library( basename.feature.group SHARED whatever.c )<br>
    SET_TARGET_PROPERTIES( basename.feature.group PROPERTIES<br>
                   SUFFIX &quot;&quot;<br>
                   PREFIX &quot;&quot;<br>
    )<br>
<br>
results in &#39;basename.dll&#39; being produced  (drops .feature.group)<br>
<br>
--------<br>
    add_library( basename_feature_group SHARED whatever.c )<br>
    SET_TARGET_PROPERTIES( basename.feature.group PROPERTIES<br>
                   SUFFIX &quot;&quot;<br>
                   PREFIX &quot;&quot;<br>
    )<br>
<br>
results in &#39;basename_feature_group.dll&#39;<br>
<br>
-----------<br>
    add_library( basename_feature.group SHARED whatever.c )<br>
    SET_TARGET_PROPERTIES( basename_feature.group PROPERTIES<br>
                   SUFFIX &quot;&quot;<br>
                   PREFIX &quot;&quot;<br>
    )<br>
<br>
results in &#39;basename_feature.group&#39; being produced  (correct)<br>
<br>
<br>
<br>
results in &#39;basename.dll&#39; being produced<br>
<div><div></div><div class="h5"><br>
On Tue, Sep 7, 2010 at 12:48 AM, J Decker &lt;<a href="mailto:d3ck0r@gmail.com">d3ck0r@gmail.com</a>&gt; wrote:<br>
&gt; On Tue, Sep 7, 2010 at 12:29 AM, J Decker &lt;<a href="mailto:d3ck0r@gmail.com">d3ck0r@gmail.com</a>&gt; wrote:<br>
&gt;&gt; The sample CMakeLists.txt  (requires a blank &#39;whatever.c&#39; file)<br>
&gt;&gt; -------------<br>
&gt;&gt; cmake_minimum_required(VERSION 2.8)<br>
&gt;&gt;<br>
&gt;<br>
&gt; Same sceneario but instead specify a flat name with &#39;-&#39;<br>
&gt;<br>
&gt;    add_library( bag-service-external SHARED whatever.c )<br>
&gt;    SET_TARGET_PROPERTIES( bag-service-external PROPERTIES<br>
&gt;                   SUFFIX &quot;&quot;<br>
&gt;                   PREFIX &quot;&quot;<br>
&gt;    )<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; ------------<br>
&gt;&gt;<br>
&gt;&gt; the configuration of link library target is...<br>
&gt;&gt;<br>
&gt;&gt; $(OutDir)$(TargetName)$(TargetExt)<br>
&gt;&gt;<br>
&gt;&gt; When I click edit, and check the macros<br>
&gt;&gt;<br>
&gt;&gt; $(OutDir)=(somewhere, doesn&#39;t matter)<br>
&gt;<br>
&gt;  $(TargetFileName)=bag-service-external<br>
&gt;  $(TargetName)=bag-service-external<br>
&gt;  $(TargetExt)=.dll<br>
&gt;<br>
&gt;<br>
&gt; So the resulting filename has .dll appended to it.<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; .............<br>
&gt;&gt;<br>
&gt;&gt; can probably work around by replacing a &#39;.&#39; in the target name with<br>
&gt;&gt; something else.<br>
&gt;&gt;<br>
&gt;<br>
&gt; actually the correct result requires a single . in the filename,<br>
&gt; neither projects with no . or with multiple . works.<br>
&gt;<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>
</div></div></blockquote></div><br></div>