summaryrefslogtreecommitdiff
path: root/win/upgrade_wizard
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2011-02-03 21:02:20 +0100
committerVladislav Vaintroub <wlad@montyprogram.com>2011-02-03 21:02:20 +0100
commit074dc9a550e110810bb62fb4c709811d29cd0c91 (patch)
tree3a9bc5e8b1fed69bf1a4fe82a1cfe7a7f4f2914e /win/upgrade_wizard
parentd99fbf4867db99b79385565f2b8ac9f164462240 (diff)
downloadmariadb-git-074dc9a550e110810bb62fb4c709811d29cd0c91.tar.gz
On Philips request, introduce a variable
BUILD_RELEASE to disable graceful fallbacks if WiX or MFC is not available.
Diffstat (limited to 'win/upgrade_wizard')
-rw-r--r--win/upgrade_wizard/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/win/upgrade_wizard/CMakeLists.txt b/win/upgrade_wizard/CMakeLists.txt
index fad67a207de..2e15087de43 100644
--- a/win/upgrade_wizard/CMakeLists.txt
+++ b/win/upgrade_wizard/CMakeLists.txt
@@ -9,8 +9,13 @@ ENDIF()
# We need MFC
FIND_PACKAGE(MFC)
IF(NOT MFC_FOUND)
+ IF(BUILD_RELEASE)
+ MESSAGE(FATAL_ERROR
+ "Can't find MFC. It is necessary for producing official package"
+ )
+ ENDIF()
RETURN()
-ENDIF()
+ENDIF()
# MFC should be statically linked
SET(CMAKE_MFC_FLAG 1)