Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CMake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Daniel Black
CMake
Commits
a259e8db
Commit
a259e8db
authored
8 years ago
by
Brad King
Browse files
Options
Downloads
Patches
Plain Diff
InstallRequiredSystemLibraries: Use `MSVC_VERSION` instead of `MSVC##`
Issue: #16735
parent
e1adec32
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Modules/InstallRequiredSystemLibraries.cmake
+22
-22
22 additions, 22 deletions
Modules/InstallRequiredSystemLibraries.cmake
with
22 additions
and
22 deletions
Modules/InstallRequiredSystemLibraries.cmake
+
22
−
22
View file @
a259e8db
...
...
@@ -69,21 +69,21 @@ if(MSVC)
get_filename_component
(
devenv_dir
"
${
CMAKE_MAKE_PROGRAM
}
"
PATH
)
get_filename_component
(
base_dir
"
${
devenv_dir
}
/../.."
ABSOLUTE
)
if
(
MSVC
7
0
)
if
(
MSVC
_VERSION EQUAL 130
0
)
set
(
__install__libs
"
${
SYSTEMROOT
}
/system32/msvcp70.dll"
"
${
SYSTEMROOT
}
/system32/msvcr70.dll"
)
endif
()
if
(
MSVC
71
)
if
(
MSVC
_VERSION EQUAL 1310
)
set
(
__install__libs
"
${
SYSTEMROOT
}
/system32/msvcp71.dll"
"
${
SYSTEMROOT
}
/system32/msvcr71.dll"
)
endif
()
if
(
MSVC
8
0
)
if
(
MSVC
_VERSION EQUAL 140
0
)
# Find the runtime library redistribution directory.
get_filename_component
(
msvc_install_dir
"[HKEY_LOCAL_MACHINE
\\
SOFTWARE
\\
Microsoft
\\
VisualStudio
\\
8.0;InstallDir]"
ABSOLUTE
)
...
...
@@ -120,7 +120,7 @@ if(MSVC)
endif
()
endif
()
if
(
MSVC
9
0
)
if
(
MSVC
_VERSION EQUAL 150
0
)
# Find the runtime library redistribution directory.
get_filename_component
(
msvc_install_dir
"[HKEY_LOCAL_MACHINE
\\
SOFTWARE
\\
Microsoft
\\
VisualStudio
\\
9.0;InstallDir]"
ABSOLUTE
)
...
...
@@ -234,36 +234,36 @@ if(MSVC)
endif
()
endmacro
()
if
(
MSVC
1
0
)
if
(
MSVC
_VERSION EQUAL 160
0
)
MSVCRT_FILES_FOR_VERSION
(
10
)
endif
()
if
(
MSVC
11
)
if
(
MSVC
_VERSION EQUAL 1700
)
MSVCRT_FILES_FOR_VERSION
(
11
)
endif
()
if
(
MSVC
12
)
if
(
MSVC
_VERSION EQUAL 1800
)
MSVCRT_FILES_FOR_VERSION
(
12
)
endif
()
if
(
MSVC
14
)
if
(
MSVC
_VERSION EQUAL 1900 OR MSVC_VERSION EQUAL 1910
)
MSVCRT_FILES_FOR_VERSION
(
14
)
endif
()
if
(
CMAKE_INSTALL_MFC_LIBRARIES
)
if
(
MSVC
7
0
)
if
(
MSVC
_VERSION EQUAL 130
0
)
set
(
__install__libs
${
__install__libs
}
"
${
SYSTEMROOT
}
/system32/mfc70.dll"
)
endif
()
if
(
MSVC
71
)
if
(
MSVC
_VERSION EQUAL 1310
)
set
(
__install__libs
${
__install__libs
}
"
${
SYSTEMROOT
}
/system32/mfc71.dll"
)
endif
()
if
(
MSVC
8
0
)
if
(
MSVC
_VERSION EQUAL 140
0
)
if
(
CMAKE_INSTALL_DEBUG_LIBRARIES
)
set
(
MSVC80_MFC_DIR
"
${
MSVC80_REDIST_DIR
}
/Debug_NonRedist/
${
CMAKE_MSVC_ARCH
}
/Microsoft.VC80.DebugMFC"
)
...
...
@@ -307,7 +307,7 @@ if(MSVC)
)
endif
()
if
(
MSVC
9
0
)
if
(
MSVC
_VERSION EQUAL 150
0
)
if
(
CMAKE_INSTALL_DEBUG_LIBRARIES
)
set
(
MSVC90_MFC_DIR
"
${
MSVC90_REDIST_DIR
}
/Debug_NonRedist/
${
CMAKE_MSVC_ARCH
}
/Microsoft.VC90.DebugMFC"
)
...
...
@@ -403,19 +403,19 @@ if(MSVC)
)
endmacro
()
if
(
MSVC
1
0
)
if
(
MSVC
_VERSION EQUAL 160
0
)
MFC_FILES_FOR_VERSION
(
10
)
endif
()
if
(
MSVC
11
)
if
(
MSVC
_VERSION EQUAL 1700
)
MFC_FILES_FOR_VERSION
(
11
)
endif
()
if
(
MSVC
12
)
if
(
MSVC
_VERSION EQUAL 1800
)
MFC_FILES_FOR_VERSION
(
12
)
endif
()
if
(
MSVC
14
)
if
(
MSVC
_VERSION EQUAL 1900 OR MSVC_VERSION EQUAL 1910
)
MFC_FILES_FOR_VERSION
(
14
)
endif
()
endif
()
...
...
@@ -434,22 +434,22 @@ if(MSVC)
endif
()
endmacro
()
if
(
MSVC
8
0
)
if
(
MSVC
_VERSION EQUAL 140
0
)
OPENMP_FILES_FOR_VERSION
(
80 80
)
endif
()
if
(
MSVC
9
0
)
if
(
MSVC
_VERSION EQUAL 150
0
)
OPENMP_FILES_FOR_VERSION
(
90 90
)
endif
()
if
(
MSVC
1
0
)
if
(
MSVC
_VERSION EQUAL 160
0
)
OPENMP_FILES_FOR_VERSION
(
10 100
)
endif
()
if
(
MSVC
11
)
if
(
MSVC
_VERSION EQUAL 1700
)
OPENMP_FILES_FOR_VERSION
(
11 110
)
endif
()
if
(
MSVC
12
)
if
(
MSVC
_VERSION EQUAL 1800
)
OPENMP_FILES_FOR_VERSION
(
12 120
)
endif
()
if
(
MSVC
14
)
if
(
MSVC
_VERSION EQUAL 1900 OR MSVC_VERSION EQUAL 1910
)
OPENMP_FILES_FOR_VERSION
(
14 140
)
endif
()
endif
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment