CMakeLists.txt: Disable UPX when using a mingw toolchain, else the produced executable crashes at runtime

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404 2022-06-11 17:38:44 +02:00
parent e9468a3c7e
commit 89888113e7
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ if (Threads_FOUND)
endif()
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))
if (NOT (CMAKE_BUILD_TYPE STREQUAL Debug OR CMAKE_BUILD_TYPE STREQUAL RelWithDebInfo OR NO_SELF_PACKER OR DEFINED EMSCRIPTEN OR MINGW))
include(FindSelfPackers)
if (SELF_PACKER_FOR_EXECUTABLE MATCHES upx)
set(SELF_PACKER_FOR_EXECUTABLE_FLAGS ${SELF_PACKER_FOR_EXECUTABLE_FLAGS} --ultra-brute --best)