CMake: Remove an unnecessary version check

MINGW implies WIN32 which implies CMake >= 3.13.

Follow-up to 1dad8190b1.
This commit is contained in:
João Valverde 2021-09-22 14:48:06 +01:00
parent 6921f01250
commit 9f9afc0e86
2 changed files with 4 additions and 3 deletions

View File

@ -2587,7 +2587,7 @@ endmacro()
macro(executable_link_mingw_unicode _target)
# target_link_options() requires CMake >= 3.13
if (MINGW AND CMAKE_VERSION VERSION_GREATER "3.12.99")
if (MINGW)
target_link_options(${_target} PRIVATE "-municode")
endif()
endmacro()

View File

@ -74,9 +74,10 @@ macro(set_extcap_executable_properties _executable)
endif()
endif()
if (MINGW AND CMAKE_VERSION VERSION_GREATER "3.12.99")
if (MINGW)
set_target_properties(${_executable} PROPERTIES
LINK_OPTIONS -municode)
LINK_OPTIONS -municode
)
endif()
endmacro()