aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake/CopyWinLibs.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/cmake/CopyWinLibs.cmake')
-rw-r--r--linden/indra/cmake/CopyWinLibs.cmake55
1 files changed, 55 insertions, 0 deletions
diff --git a/linden/indra/cmake/CopyWinLibs.cmake b/linden/indra/cmake/CopyWinLibs.cmake
index 345761a..b74ce4f 100644
--- a/linden/indra/cmake/CopyWinLibs.cmake
+++ b/linden/indra/cmake/CopyWinLibs.cmake
@@ -148,6 +148,61 @@ else(EXISTS ${internal_llkdu_path})
148 148
149endif (EXISTS ${internal_llkdu_path}) 149endif (EXISTS ${internal_llkdu_path})
150 150
151# Copy MS C runtime dlls, required for packaging.
152# *TODO - Adapt this to support VC9
153if (MSVC80)
154 FIND_PATH(debug_msvc8_redist_path msvcr80d.dll
155 PATHS
156 [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0\\Setup\\VC;ProductDir]/redist/Debug_NonRedist/x86/Microsoft.VC80.DebugCRT
157 )
158
159 if(EXISTS ${debug_msvc8_redist_path})
160 set(debug_msvc8_files
161 msvcr80d.dll
162 msvcp80d.dll
163 Microsoft.VC80.DebugCRT.manifest
164 )
165
166 copy_if_different(
167 ${debug_msvc8_redist_path}
168 "${CMAKE_CURRENT_BINARY_DIR}/Debug"
169 out_targets
170 ${debug_msvc8_files}
171 )
172 set(all_targets ${all_targets} ${out_targets})
173 endif (EXISTS ${debug_msvc8_redist_path})
174
175 FIND_PATH(release_msvc8_redist_path msvcr80.dll
176 PATHS
177 [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0\\Setup\\VC;ProductDir]/redist/x86/Microsoft.VC80.CRT
178 )
179
180 if(EXISTS ${release_msvc8_redist_path})
181 set(release_msvc8_files
182 msvcr80.dll
183 msvcp80.dll
184 Microsoft.VC80.CRT.manifest
185 )
186
187 copy_if_different(
188 ${release_msvc8_redist_path}
189 "${CMAKE_CURRENT_BINARY_DIR}/Release"
190 out_targets
191 ${release_msvc8_files}
192 )
193 set(all_targets ${all_targets} ${out_targets})
194
195 copy_if_different(
196 ${release_msvc8_redist_path}
197 "${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo"
198 out_targets
199 ${release_msvc8_files}
200 )
201 set(all_targets ${all_targets} ${out_targets})
202
203 endif (EXISTS ${release_msvc8_redist_path})
204endif (MSVC80)
205
151add_custom_target(copy_win_libs ALL DEPENDS ${all_targets}) 206add_custom_target(copy_win_libs ALL DEPENDS ${all_targets})
152 207
153if(EXISTS ${internal_llkdu_path}) 208if(EXISTS ${internal_llkdu_path})