diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-02 15:25:19 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-02 15:25:19 +0200 |
commit | bca0de626b16378719185df8eeee47f2d9a40d4e (patch) | |
tree | 13426a11aa17d3f47ffecb48d9459238269f15b5 | |
parent | 3543fd0eaaf3ed0f068ed0012e9da8a6d500f298 (diff) |
Build bincat using MinSizeRel config
-rw-r--r-- | res/Embed.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/res/Embed.cmake b/res/Embed.cmake index 8da9e1d6..bab06347 100644 --- a/res/Embed.cmake +++ b/res/Embed.cmake | |||
@@ -9,7 +9,9 @@ if (NOT ENABLE_RESOURCE_EMBED) | |||
9 | message (STATUS "Compiling bincat for merging resource files...") | 9 | message (STATUS "Compiling bincat for merging resource files...") |
10 | set (_catDir ${CMAKE_BINARY_DIR}/res) | 10 | set (_catDir ${CMAKE_BINARY_DIR}/res) |
11 | execute_process (COMMAND ${CMAKE_COMMAND} -E make_directory ${_catDir}) | 11 | execute_process (COMMAND ${CMAKE_COMMAND} -E make_directory ${_catDir}) |
12 | execute_process (COMMAND ${CMAKE_COMMAND} ${CMAKE_SOURCE_DIR}/res WORKING_DIRECTORY ${_catDir}) | 12 | execute_process (COMMAND ${CMAKE_COMMAND} ${CMAKE_SOURCE_DIR}/res -DCMAKE_BUILD_TYPE=MinSizeRel |
13 | WORKING_DIRECTORY ${_catDir} | ||
14 | ) | ||
13 | execute_process (COMMAND ${CMAKE_COMMAND} --build . WORKING_DIRECTORY ${_catDir}) | 15 | execute_process (COMMAND ${CMAKE_COMMAND} --build . WORKING_DIRECTORY ${_catDir}) |
14 | set (BINCAT_COMMAND ${_catDir}/bincat) | 16 | set (BINCAT_COMMAND ${_catDir}/bincat) |
15 | endif () | 17 | endif () |