[cmake] Win32ImageVersionLinkerFlags.cmake: CMake macro for setting the Win32 image...
authorDavid Korth <gerbilsoft@gerbilsoft.com>
Wed, 2 Sep 2015 00:07:02 +0000 (20:07 -0400)
committerDavid Korth <gerbilsoft@gerbilsoft.com>
Wed, 2 Sep 2015 00:07:02 +0000 (20:07 -0400)
commit9a9e00c8e75e99bc4b2f4b2b96db1cf7798636dc
treec9c33016575ca95f348491687db2ce9ac47d47a7
parent4fde0c1cc7ec734ea337e5a98a548e981d87b392
[cmake] Win32ImageVersionLinkerFlags.cmake: CMake macro for setting the Win32 image version.

Setting the TARGET_VERSION field causes GNU ld to append the version
number to the filename, e.g. "quack.exe-0.0" (or something like that).
This macro, which I originally wrote for sadx-mod-loader, fixes that.

CMakeLists.txt: Call WIN32_IMAGE_VERSION_LINKER_FLAGS() in DO_SPLIT_DEBUG().
CMakeLists.txt
cmake/macros/Win32ImageVersionLinkerFlags.cmake [new file with mode: 0644]