CMakeLists.txt: Add "--best" to the flags for UPX
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
parent
4f2f4a7fa9
commit
faf15b4ccf
|
@ -156,7 +156,7 @@ option(NO_SELF_PACKER "Disables usage of a self-packer")
|
|||
if (NOT (CMAKE_BUILD_TYPE STREQUAL Debug OR CMAKE_BUILD_TYPE STREQUAL RelWithDebInfo OR NO_SELF_PACKER OR DEFINED EMSCRIPTEN))
|
||||
include(FindSelfPackers)
|
||||
if (SELF_PACKER_FOR_EXECUTABLE MATCHES upx)
|
||||
set(SELF_PACKER_FOR_EXECUTABLE_FLAGS ${SELF_PACKER_FOR_EXECUTABLE_FLAGS} --ultra-brute)
|
||||
set(SELF_PACKER_FOR_EXECUTABLE_FLAGS ${SELF_PACKER_FOR_EXECUTABLE_FLAGS} --ultra-brute --best)
|
||||
endif()
|
||||
if (NOT SELF_PACKER_FOR_EXECUTABLE EQUAL "")
|
||||
add_custom_command(TARGET ${EXENAME} POST_BUILD COMMAND "${SELF_PACKER_FOR_EXECUTABLE}" ${SELF_PACKER_FOR_EXECUTABLE_FLAGS} $<TARGET_FILE:${EXENAME}> VERBATIM)
|
||||
|
|
Loading…
Reference in New Issue