DEBUG_POSTFIX? http://www.cmake.org/cmake/help/v3.3/prop_tgt/DEBUG_POSTFIX.html
On Sat, Aug 22, 2015 at 12:11 PM, Mauro Ziliani <mauro.ziliani....@gmail.com> wrote: > Hi all. > My name is mauro and i am a freelance programmer and I work different > platforms: windows and Linux. > I'm trying cmake 3.3.1 and I am in trouble to do this. > > 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. > That is, if the app's name is test in debug configuration I'd like to obtain > test_dbg.exe. > > Using makefile and make command I can obtain the same behavior by > conditional compilation with command > > make BUILD=debug ====> test_dbg.exe > > My CMakeLists.txt is > > -------- > cmake_minimum_required(VERSION 3.3) > > Project(test_vs) > > add_executable(test test.cpp) > > set_target_properties(test PROPERTIES DEBUG_SUFFIX "_dbg") > ------ > > But it doesn't work. > > Either for debug and release configuration the app's name is test.exe > > Any ideas? > > Best regards, > Mauro > > -- > > Powered by www.kitware.com > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Kitware offers various services to support the CMake community. For more > information on each offering, please visit: > > CMake Support: http://cmake.org/cmake/help/support.html > CMake Consulting: http://cmake.org/cmake/help/consulting.html > CMake Training Courses: http://cmake.org/cmake/help/training.html > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/cmake -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake