Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
7dfa1168
Commit
7dfa1168
authored
Jan 08, 2022
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-27446 Windows, MSI - fix redistributable merge module path for VS2022
parent
8265d6d9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
30 deletions
+13
-30
win/packaging/CMakeLists.txt
win/packaging/CMakeLists.txt
+13
-30
No files found.
win/packaging/CMakeLists.txt
View file @
7dfa1168
...
...
@@ -176,40 +176,23 @@ IF(CMAKE_GENERATOR MATCHES "Visual Studio")
SET
(
CONFIG_PARAM
"-DCMAKE_INSTALL_CONFIG_NAME=
${
CMAKE_CFG_INTDIR
}
"
)
ENDIF
()
IF
(
MSVC_CRT_TYPE MATCHES
"/MD"
)
IF
(
MSVC_CRT_TYPE MATCHES
"/MD"
AND
(
NOT VCRedist_MSM
)
)
# Find out CRT merge module path, we're going to use it in installer
# The path and name depends on VS version
IF
(
MSVC_VERSION LESS 1900
)
# VS2015
SET
(
VCREDIST_MSM_FILENAME Microsoft_VC140_CRT_
${
WIX_ARCH_SUFFIX
}
.msm
)
SET
(
ProgramFilesX86
"ProgramFiles(x86)"
)
FIND_FILE
(
${
VCREDIST_MSM_FILENAME
}
NO_DEFAULT_PATH
PATHS
"$ENV{
${
ProgramFilesX86
}
}/Common Files/Merge Modules"
"$ENV{ProgramFiles}/Common Files/Merge Modules"
)
ELSEIF
(
MSVC_VERSION LESS 1920
)
# VS2017
SET
(
VCREDIST_MSM_FILENAME Microsoft_VC141_CRT_
${
WIX_ARCH_SUFFIX
}
.msm
)
FILE
(
GLOB MSM_LIST
"C:/Program Files*/Microsoft Visual Studio/2017/*/VC/Redist/MSVC/*/MergeModules/
${
VCREDIST_MSM_FILENAME
}
"
)
LIST
(
LENGTH MSM_LIST LEN
)
IF
(
LEN GREATER 0
)
LIST
(
GET MSM_LIST 0 VCRedist_MSM
)
ENDIF
()
ELSE
()
# VS2019
SET
(
VCREDIST_MSM_FILENAME Microsoft_VC142_CRT_
${
WIX_ARCH_SUFFIX
}
.msm
)
FILE
(
GLOB MSM_LIST
"C:/Program Files*/Microsoft Visual Studio/2019/*/VC/Redist/MSVC/*/MergeModules/
${
VCREDIST_MSM_FILENAME
}
"
)
# merge module file name depends on MSVC version.
MATH
(
EXPR VC_CRT_VER
"(
${
MSVC_VERSION
}
- 1900)/10 + 140"
)
SET
(
VCREDIST_MSM_FILENAME Microsoft_VC
${
VC_CRT_VER
}
_CRT_
${
WIX_ARCH_SUFFIX
}
.msm
)
FILE
(
GLOB MSM_LIST
"C:/Program Files*/Microsoft Visual Studio/*/*/VC/Redist/MSVC/*/MergeModules/
${
VCREDIST_MSM_FILENAME
}
"
)
LIST
(
LENGTH MSM_LIST LEN
)
IF
(
LEN GREATER 0
)
LIST
(
GET MSM_LIST 0 VCRedist_MSM
)
ENDIF
()
LIST
(
GET MSM_LIST 0 VCRedist_MSM_Location
)
ENDIF
()
IF
(
NOT VCRedist_MSM
)
IF
(
NOT VCRedist_MSM
_Location
)
MESSAGE
(
WARNING
"Can't find merge module
${
VCREDIST_MSM_FILENAME
}
"
)
ELSE
()
FILE
(
TO_NATIVE_PATH
${
VCRedist_MSM
}
VCRedist_MSM
)
FILE
(
TO_NATIVE_PATH
${
VCRedist_MSM_Location
}
VCRedist_MSM_Location
)
SET
(
VCRedist_MSM
"
${
VCRedist_MSM_Location
}
"
CACHE INTERNAL
"Location of redistributable merge module"
)
# MESSAGE("VCRedist_MSM=${VCRedist_MSM}")
ENDIF
()
ENDIF
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment