Hello All,<br><br>I use CMake to build my project's sources on windows and linux using static and dynamic runtimes. <br><br>I would like to add information about build configuration to the output file name as suffix. <br>
<br>For instance:<br> - libsome_lib_<b>linux_x32</b>.a - static library "some_lib" for linux 32bit<br> - some_lib_<b>windows_x64_md</b>.lib - static library "some_lib" for windows 64bit with dynamic release runtime<br>
- some_lib_<b>windows_x62_mtd</b>.lib - static library "some_lib" for windows 32bit with static debug runtime<br><br>For windows I generate projects with debug and release configurations.<br><br>Right now I play with <br>
- CMAKE_STATIC_LIBRARY_SUFFIX<br> - CMAKE_SHARED_MODULE_SUFFIX<br> - CMAKE_SHARED_LIBRARY_SUFFIX<br> - CMAKE_EXECUTABLE_SUFFIX<br> - CMAKE_<CONFIG>_POSTFIX<br><br>But it is not enought. CMAKE_<CONFIG>_POSTFIX changes suffix only for dll and lib files. But not for exe file.<br>
<br>Also I played with <CONFIG>_OUTPUT_NAME. It solves my problem but I have to change this property for all my projects. It is not obvious in my case. I have too much projects.<br><br>Question: How can I setup suffixes for every configuration in one place?<br>
<br>Regards,<br>Dima<br>