Disable mingw-w64 packaging specific code by default

This commit is contained in:
Martchus 2019-06-01 16:32:21 +02:00
parent 5a8029692b
commit bfdd6ada2b
1 changed files with 6 additions and 1 deletions

View File

@ -450,8 +450,13 @@ if (NOT META_NO_INSTALL_TARGETS AND ENABLE_INSTALL_TARGETS)
install-cmake-templates)
endif ()
# add mingw-w64 specific install targets
# add targets to ease creating mingw-w64 packages under Arch Linux
if (MINGW)
option(ENABLE_TARGETS_FOR_MINGW_CROSS_PACKAGING "enable targets to ease creating mingw-w64 packages under Arch Linux" OFF)
else ()
set(ENABLE_TARGETS_FOR_MINGW_CROSS_PACKAGING OFF)
endif ()
if (ENABLE_TARGETS_FOR_MINGW64_CROSS_PACKAGING)
if (NOT TARGET install-mingw-w64)
add_custom_target(install-mingw-w64)
endif ()