<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;On 05/08/2011 07:35 AM, Bo Zhou wrote:</span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;&gt;<i> Hello all,</i></span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;&gt;<i> </i></span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;&gt;<i> I am dealing with a problem about the
output path. At present I just do</i></span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;&gt;<i> like this,</i></span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;&gt;<i> </i></span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;&gt;<i> set(CMAKE_RUNTIME_OUTPUT_DIRECTORY
&quot;${CMAKE_INSTALL_PREFIX}/bin&quot;)</i></span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;&gt;<i> set(CMAKE_LIBRARY_OUTPUT_DIRECTORY
&quot;${CMAKE_INSTALL_PREFIX}/lib&quot;)</i></span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;&gt;<i> </i></span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;&gt;<i> And in fact the full path will be</i></span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;&gt;<i>
&quot;${CMAKE_INSTALL_PREFIX}/bin/{Debug|Release}/&quot;, the all .exe .dll
.pdb</i></span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;&gt;<i> files will be generated there.</i></span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;&gt;<i> </i></span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;&gt;<i> Now I have a DLL target which should be in
bin/plugins, I try a way</i></span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;&gt;<i> which generates {Debug|Release} folders
under the bin folder, that&#39;s</i></span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;&gt;<i> unnecessary.</i></span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;&gt;<i> </i></span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;&gt;<i> I prefer a more clear output directory
structure like</i></span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;&gt;<i>
${CMAKE_INSTALL_PREFIX}/{Debug|Release}/bin/plugin, how should I do ?</i></span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;&gt;<i> </i></span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;&gt;<i> Thanks !</i></span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt; </span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;You shouldn&#39;t use the CMAKE_*_OUTPUT_DIRECTORY
variables to write</span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;your project&#39;s binaries to their final
installation directory under</span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;CMAKE_INSTALL_PREFIX. Instead, provide appropriate
INSTALL() commands</span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;for each target and make use of INSTALL()&#39;s CONFIGURATIONS
clause, e.g.</span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt; </span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;INSTALL(TARGETS plugin</span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;    RUNTIME
DESTINATION Debug/bin/plugin</span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;    LIBRARY
DESTINATION Debug/lib/plugin</span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;   
CONFIGURATIONS Debug)</span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;INSTALL(TARGETS plugin</span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;    RUNTIME
DESTINATION Release/bin/plugin</span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;    LIBRARY
DESTINATION Release/lib/plugin</span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;   
CONFIGURATIONS Release)</span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt; </span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;etc. for further configurations and other targets
to be installed.</span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt; </span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;</span><span style="font-size:10pt;font-family:&#39;Courier New&#39;">Regards,</span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;</span><span style="font-size:10pt;font-family:&#39;Courier New&#39;"> </span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">&gt;</span><span style="font-size:10pt;font-family:&#39;Courier New&#39;">Michael</span></p>

<p class="MsoNormal" style="background:white"><span style="font-size:10pt;font-family:&#39;Courier New&#39;"> </span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">Hello, </span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">doing this for me only writes the target “plugin” for one
config cmake_config.cmake. Then one need to rebuild cmake_config each time.</span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">I’m using CMake 2.8.7 under Windows and Visual studio.</span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">Is it a known issue? Any idea about a fix?</span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">Regards,</span></p>

<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10pt;font-family:&#39;Courier New&#39;">Erwan</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>