<p dir="ltr">Oh Yes I mean DEBUG_POSTFIX.</p>
<div class="gmail_quot<blockquote class=" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">DEBUG_POSTFIX?<br>
<br>
<a href="http://www.cmake.org/cmake/help/v3.3/prop_tgt/DEBUG_POSTFIX.html" rel="noreferrer" target="_blank">http://www.cmake.org/cmake/help/v3.3/prop_tgt/DEBUG_POSTFIX.html</a><br>
<br>
On Sat, Aug 22, 2015 at 12:11 PM, Mauro Ziliani<br>
<<a href="mailto:mauro.ziliani.tmp@gmail.com">mauro.ziliani.tmp@gmail.com</a>> wrote:<br>
> Hi all.<br>
> My name is mauro and i am a freelance programmer and I work different<br>
> platforms: windows and Linux.<br>
> I'm trying cmake 3.3.1 and I am in trouble to do this.<br>
><br>
> I need to compile my app with visual studio and achieve the follow behavior.<br>
> If I compile the app in debug configuration I need to append the suffix _dbg<br>
> to the app name, nothing in release configuration.<br>
> That is, if the app's name is test in debug configuration I'd like to obtain<br>
> test_dbg.exe.<br>
><br>
> Using makefile and make command I can obtain the same behavior by<br>
> conditional compilation with command<br>
><br>
> make BUILD=debug ====> test_dbg.exe<br>
><br>
> My CMakeLists.txt is<br>
><br>
> --------<br>
> cmake_minimum_required(VERSION 3.3)<br>
><br>
> Project(test_vs)<br>
><br>
> add_executable(test test.cpp)<br>
><br>
> set_target_properties(test PROPERTIES DEBUG_SUFFIX "_dbg")<br>
> ------<br>
><br>
> But it doesn't work.<br>
><br>
> Either for debug and release configuration the app's name is test.exe<br>
><br>
> Any ideas?<br>
><br>
> Best regards,<br>
>    Mauro<br>
><br>
> --<br>
><br>
> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
><br>
> Please keep messages on-topic and check the CMake FAQ at:<br>
> <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
><br>
> Kitware offers various services to support the CMake community. For more<br>
> information on each offering, please visit:<br>
><br>
> CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
> CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
> CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/cmake</a><br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/cmake</a><br>
</div>