diff options
Diffstat (limited to 'res/Embed.cmake')
-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 () |