1
1
# Copyright (c) 2010, 2023, Oracle and/or its affiliates.
2
- #
2
+ #
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License, version 2.0,
5
5
# as published by the Free Software Foundation.
@@ -26,7 +26,7 @@ cmake_minimum_required(VERSION 3.0)
26
26
# Build MSI package from files installed in CMAKE_INSTALL_PREFIX location.
27
27
#
28
28
# Usage:
29
- # cmake -D CMAKE_INSTALL_PREFIX=<install loc>
29
+ # cmake -D CMAKE_INSTALL_PREFIX=<install loc>
30
30
# -D INSTALL_MANIFEST=<manifest file> ... <src>/packaging/WiX
31
31
# cmake --build . --target MSI
32
32
# cmake --build . --target ZIP
@@ -134,13 +134,17 @@ include(${BASE_DIR}/packaging/PackageSpecs.cmake)
134
134
#
135
135
136
136
SET (MANUFACTURER "Oracle Corporation" )
137
- SET (PRODUCT_NAME "MySQL Connector C++" )
138
- SET (PRODUCT_DESCRIPTION "MySQL Connector C++" )
137
+ SET (PRODUCT_NAME "MySQL Connector/ C++" )
138
+ SET (PRODUCT_DESCRIPTION "MySQL Connector/ C++" )
139
139
140
140
set (MAJOR_VERSION ${CONCPP_VERSION_MAJOR} )
141
141
set (MINOR_VERSION ${CONCPP_VERSION_MINOR} )
142
142
set (PATCH_VERSION ${CONCPP_VERSION_MICRO} )
143
143
144
+ set (WIX_INSTALL_BASE "MySQL Connector C++" )
145
+ set (WIX_INSTALL_DIR "${WIX_INSTALL_BASE} ${MAJOR_VERSION} .${MINOR_VERSION} " )
146
+
147
+
144
148
# **** IMPORTANT ****
145
149
#
146
150
# The code below needs to be replaced when moving from one version
@@ -233,7 +237,7 @@ include(wix_setup.cmake)
233
237
set (EXTRA_WIX_ARGS $ENV{EXTRA_WIX_ARGS} )
234
238
235
239
add_custom_target (MSI
236
- COMMAND ${WIX_EXECUTABLE} build -ext WixToolset.UI.wixext -ext WixToolset.Util.wixext -arch ${PLATFORM} connector-cpp.wxs
240
+ COMMAND ${WIX_EXECUTABLE} build -ext WixToolset.UI.wixext -ext WixToolset.Util.wixext -arch ${PLATFORM} connector-cpp.wxs
237
241
-out ${CMAKE_BINARY_DIR} /${CPACK_PACKAGE_FILE_NAME}.msi
238
242
${EXTRA_WIX_ARGS}
239
243
)
0 commit comments