Hi all.<div>My name is mauro and i am a freelance programmer and I work different platforms: windows and Linux.</div><div>I'm trying cmake 3.3.1 and I am in trouble to do this.</div><div><br></div><div>I need to compile my app with visual studio and achieve the follow behavior. If I compile the app in debug configuration I need to append the suffix _dbg to the app name, nothing in release configuration.</div><div>That is, if the app's name is test in debug configuration I'd like to obtain test_dbg.exe.</div><div><br></div><div>Using makefile and make command I can obtain the same behavior by conditional compilation with command</div><div><br></div><div>make BUILD=debug ====> test_dbg.exe</div><div><br></div><div>My CMakeLists.txt is</div><div><br></div><div>--------</div><div>cmake_minimum_required(VERSION 3.3)</div><div><br></div><div>Project(test_vs)</div><div><br></div>add_executable(test test.cpp)<div><br></div><div>set_target_properties(test PROPERTIES DEBUG_SUFFIX "_dbg")</div><div>------</div><div><br></div><div>But it doesn't work.</div><div><br></div><div>Either for debug and release configuration the app's name is test.exe</div><div><br></div><div>Any ideas?</div><div><br></div>Best regards,<div>   Mauro</div>