CMakeLists.txt: Fix the SELF_PACKER_FOR_EXECUTABLE check

This commit is contained in:
Username404 2022-07-29 10:22:29 +00:00
parent b648a8baba
commit 2104f6e804
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ if (NOT (CMAKE_BUILD_TYPE STREQUAL Debug OR CMAKE_BUILD_TYPE STREQUAL RelWithDeb
if (SELF_PACKER_FOR_EXECUTABLE MATCHES upx)
set(SELF_PACKER_FOR_EXECUTABLE_FLAGS ${SELF_PACKER_FOR_EXECUTABLE_FLAGS} --ultra-brute --best)
endif()
if (NOT SELF_PACKER_FOR_EXECUTABLE EQUAL "")
if (NOT SELF_PACKER_FOR_EXECUTABLE STREQUAL "SELF_PACKER_FOR_EXECUTABLE-NOTFOUND")
add_custom_command(TARGET ${EXENAME} POST_BUILD COMMAND "${SELF_PACKER_FOR_EXECUTABLE}" ${SELF_PACKER_FOR_EXECUTABLE_FLAGS} $<TARGET_FILE:${EXENAME}> VERBATIM)
endif()
endif()