summaryrefslogtreecommitdiff
path: root/win
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2017-03-30 13:11:34 +0000
committerVladislav Vaintroub <wlad@mariadb.com>2017-04-02 17:29:04 +0000
commit0cca5bdf0b6d9b1562e7a92ae51d983d2a63a1f0 (patch)
treeff5dc1a0723ec9e9d986ff5b96153321729a9632 /win
parent099ba3465e5f93351a5d265e0ef59ab0f3dcb260 (diff)
downloadmariadb-git-0cca5bdf0b6d9b1562e7a92ae51d983d2a63a1f0.tar.gz
Allow to specify C runtime library used for compilation.
Default to static release (previously static debug was used in debug builds, but not is appears to be too slow)
Diffstat (limited to 'win')
-rw-r--r--win/packaging/CPackWixConfig.cmake3
-rw-r--r--win/upgrade_wizard/CMakeLists.txt11
2 files changed, 9 insertions, 5 deletions
diff --git a/win/packaging/CPackWixConfig.cmake b/win/packaging/CPackWixConfig.cmake
index a8208de659f..e954110ef19 100644
--- a/win/packaging/CPackWixConfig.cmake
+++ b/win/packaging/CPackWixConfig.cmake
@@ -9,7 +9,7 @@ IF(ESSENTIALS)
ENDIF()
ELSE()
SET(CPACK_COMPONENTS_USED
- "Server;Client;Development;SharedLibraries;Documentation;Readme;Debuginfo;Common;connect-engine;ClientPlugins;gssapi-server;gssapi-client;aws-key-management;rocksdb-engine")
+ "Server;Client;Development;SharedLibraries;Documentation;Readme;Debuginfo;Common;VCCRT;connect-engine;ClientPlugins;gssapi-server;gssapi-client;aws-key-management;rocksdb-engine")
ENDIF()
SET( WIX_FEATURE_MySQLServer_EXTRA_FEATURES "DBInstance;SharedClientServerComponents")
@@ -35,6 +35,7 @@ SET(CPACK_COMPONENTS_ALL ${CPACK_ALL})
SET(CPACK_COMPONENT_GROUP_ALWAYSINSTALL_HIDDEN 1)
SET(CPACK_COMPONENT_README_GROUP "AlwaysInstall")
SET(CPACK_COMPONENT_COMMON_GROUP "AlwaysInstall")
+SET(CPACK_COMPONENT_VCCRT_GROUP "AlwaysInstall")
# Feature MySQL Server
SET(CPACK_COMPONENT_GROUP_MYSQLSERVER_DISPLAY_NAME "MariaDB Server")
diff --git a/win/upgrade_wizard/CMakeLists.txt b/win/upgrade_wizard/CMakeLists.txt
index 44d6249ea1e..dc4ef67387d 100644
--- a/win/upgrade_wizard/CMakeLists.txt
+++ b/win/upgrade_wizard/CMakeLists.txt
@@ -16,10 +16,13 @@ IF(NOT MFC_FOUND)
ENDIF()
RETURN()
ENDIF()
-
-# MFC should be statically linked
-SET(CMAKE_MFC_FLAG 1)
-
+IF(MSVC_CRT_TYPE MATCHES "/MD")
+ # MFC should be dynamically linked
+ SET(CMAKE_MFC_FLAG 2)
+ELSE()
+ # MFC should be statically linked
+ SET(CMAKE_MFC_FLAG 1)
+ENDIF()
# Enable exception handling (avoids warnings)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc")