From bfdd6ada2bcbd4c10415704284cf3581eacafd7f Mon Sep 17 00:00:00 2001 From: Martchus Date: Sat, 1 Jun 2019 16:32:21 +0200 Subject: [PATCH] Disable mingw-w64 packaging specific code by default --- cmake/modules/LibraryTarget.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmake/modules/LibraryTarget.cmake b/cmake/modules/LibraryTarget.cmake index 5fc1f3a..46b8f89 100644 --- a/cmake/modules/LibraryTarget.cmake +++ b/cmake/modules/LibraryTarget.cmake @@ -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 ()