InstallRequiredSystemLibraries.cmake 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. #.rst:
  2. # InstallRequiredSystemLibraries
  3. # ------------------------------
  4. #
  5. #
  6. #
  7. # By including this file, all library files listed in the variable
  8. # CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS will be installed with
  9. # install(PROGRAMS ...) into bin for WIN32 and lib for non-WIN32. If
  10. # CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP is set to TRUE before including
  11. # this file, then the INSTALL command is not called. The user can use
  12. # the variable CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS to use a custom install
  13. # command and install them however they want. If it is the MSVC
  14. # compiler, then the microsoft run time libraries will be found and
  15. # automatically added to the CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS, and
  16. # installed. If CMAKE_INSTALL_DEBUG_LIBRARIES is set and it is the MSVC
  17. # compiler, then the debug libraries are installed when available. If
  18. # CMAKE_INSTALL_DEBUG_LIBRARIES_ONLY is set then only the debug
  19. # libraries are installed when both debug and release are available. If
  20. # CMAKE_INSTALL_MFC_LIBRARIES is set then the MFC run time libraries are
  21. # installed as well as the CRT run time libraries. If
  22. # CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION is set then the libraries are
  23. # installed to that directory rather than the default. If
  24. # CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS is NOT set, then this
  25. # file warns about required files that do not exist. You can set this
  26. # variable to ON before including this file to avoid the warning. For
  27. # example, the Visual Studio Express editions do not include the
  28. # redistributable files, so if you include this file on a machine with
  29. # only VS Express installed, you'll get the warning.
  30. #=============================================================================
  31. # Copyright 2006-2009 Kitware, Inc.
  32. #
  33. # Distributed under the OSI-approved BSD License (the "License");
  34. # see accompanying file Copyright.txt for details.
  35. #
  36. # This software is distributed WITHOUT ANY WARRANTY; without even the
  37. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  38. # See the License for more information.
  39. #=============================================================================
  40. # (To distribute this file outside of CMake, substitute the full
  41. # License text for the above reference.)
  42. if(MSVC)
  43. file(TO_CMAKE_PATH "$ENV{SYSTEMROOT}" SYSTEMROOT)
  44. if(CMAKE_CL_64)
  45. if(MSVC_VERSION GREATER 1599)
  46. # VS 10 and later:
  47. set(CMAKE_MSVC_ARCH x64)
  48. else()
  49. # VS 9 and earlier:
  50. set(CMAKE_MSVC_ARCH amd64)
  51. endif()
  52. else()
  53. set(CMAKE_MSVC_ARCH x86)
  54. endif()
  55. get_filename_component(devenv_dir "${CMAKE_MAKE_PROGRAM}" PATH)
  56. get_filename_component(base_dir "${devenv_dir}/../.." ABSOLUTE)
  57. if(MSVC70)
  58. set(__install__libs
  59. "${SYSTEMROOT}/system32/msvcp70.dll"
  60. "${SYSTEMROOT}/system32/msvcr70.dll"
  61. )
  62. endif()
  63. if(MSVC71)
  64. set(__install__libs
  65. "${SYSTEMROOT}/system32/msvcp71.dll"
  66. "${SYSTEMROOT}/system32/msvcr71.dll"
  67. )
  68. endif()
  69. if(MSVC80)
  70. # Find the runtime library redistribution directory.
  71. get_filename_component(msvc_install_dir
  72. "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0;InstallDir]" ABSOLUTE)
  73. find_path(MSVC80_REDIST_DIR NAMES ${CMAKE_MSVC_ARCH}/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest
  74. PATHS
  75. "${msvc_install_dir}/../../VC/redist"
  76. "${base_dir}/VC/redist"
  77. )
  78. mark_as_advanced(MSVC80_REDIST_DIR)
  79. set(MSVC80_CRT_DIR "${MSVC80_REDIST_DIR}/${CMAKE_MSVC_ARCH}/Microsoft.VC80.CRT")
  80. # Install the manifest that allows DLLs to be loaded from the
  81. # directory containing the executable.
  82. if(NOT CMAKE_INSTALL_DEBUG_LIBRARIES_ONLY)
  83. set(__install__libs
  84. "${MSVC80_CRT_DIR}/Microsoft.VC80.CRT.manifest"
  85. "${MSVC80_CRT_DIR}/msvcm80.dll"
  86. "${MSVC80_CRT_DIR}/msvcp80.dll"
  87. "${MSVC80_CRT_DIR}/msvcr80.dll"
  88. )
  89. else()
  90. set(__install__libs)
  91. endif()
  92. if(CMAKE_INSTALL_DEBUG_LIBRARIES)
  93. set(MSVC80_CRT_DIR
  94. "${MSVC80_REDIST_DIR}/Debug_NonRedist/${CMAKE_MSVC_ARCH}/Microsoft.VC80.DebugCRT")
  95. set(__install__libs ${__install__libs}
  96. "${MSVC80_CRT_DIR}/Microsoft.VC80.DebugCRT.manifest"
  97. "${MSVC80_CRT_DIR}/msvcm80d.dll"
  98. "${MSVC80_CRT_DIR}/msvcp80d.dll"
  99. "${MSVC80_CRT_DIR}/msvcr80d.dll"
  100. )
  101. endif()
  102. endif()
  103. if(MSVC90)
  104. # Find the runtime library redistribution directory.
  105. get_filename_component(msvc_install_dir
  106. "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\9.0;InstallDir]" ABSOLUTE)
  107. get_filename_component(msvc_express_install_dir
  108. "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VCExpress\\9.0;InstallDir]" ABSOLUTE)
  109. find_path(MSVC90_REDIST_DIR NAMES ${CMAKE_MSVC_ARCH}/Microsoft.VC90.CRT/Microsoft.VC90.CRT.manifest
  110. PATHS
  111. "${msvc_install_dir}/../../VC/redist"
  112. "${msvc_express_install_dir}/../../VC/redist"
  113. "${base_dir}/VC/redist"
  114. )
  115. mark_as_advanced(MSVC90_REDIST_DIR)
  116. set(MSVC90_CRT_DIR "${MSVC90_REDIST_DIR}/${CMAKE_MSVC_ARCH}/Microsoft.VC90.CRT")
  117. # Install the manifest that allows DLLs to be loaded from the
  118. # directory containing the executable.
  119. if(NOT CMAKE_INSTALL_DEBUG_LIBRARIES_ONLY)
  120. set(__install__libs
  121. "${MSVC90_CRT_DIR}/Microsoft.VC90.CRT.manifest"
  122. "${MSVC90_CRT_DIR}/msvcm90.dll"
  123. "${MSVC90_CRT_DIR}/msvcp90.dll"
  124. "${MSVC90_CRT_DIR}/msvcr90.dll"
  125. )
  126. else()
  127. set(__install__libs)
  128. endif()
  129. if(CMAKE_INSTALL_DEBUG_LIBRARIES)
  130. set(MSVC90_CRT_DIR
  131. "${MSVC90_REDIST_DIR}/Debug_NonRedist/${CMAKE_MSVC_ARCH}/Microsoft.VC90.DebugCRT")
  132. set(__install__libs ${__install__libs}
  133. "${MSVC90_CRT_DIR}/Microsoft.VC90.DebugCRT.manifest"
  134. "${MSVC90_CRT_DIR}/msvcm90d.dll"
  135. "${MSVC90_CRT_DIR}/msvcp90d.dll"
  136. "${MSVC90_CRT_DIR}/msvcr90d.dll"
  137. )
  138. endif()
  139. endif()
  140. macro(MSVCRT_FILES_FOR_VERSION version)
  141. set(v "${version}")
  142. # Find the runtime library redistribution directory.
  143. get_filename_component(msvc_install_dir
  144. "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\${v}.0;InstallDir]" ABSOLUTE)
  145. find_path(MSVC${v}_REDIST_DIR NAMES ${CMAKE_MSVC_ARCH}/Microsoft.VC${v}0.CRT
  146. PATHS
  147. "${msvc_install_dir}/../../VC/redist"
  148. "${base_dir}/VC/redist"
  149. "$ENV{ProgramFiles}/Microsoft Visual Studio ${v}.0/VC/redist"
  150. set(programfilesx86 "ProgramFiles(x86)")
  151. "$ENV{${programfilesx86}}/Microsoft Visual Studio ${v}.0/VC/redist"
  152. )
  153. mark_as_advanced(MSVC${v}_REDIST_DIR)
  154. set(MSVC${v}_CRT_DIR "${MSVC${v}_REDIST_DIR}/${CMAKE_MSVC_ARCH}/Microsoft.VC${v}0.CRT")
  155. if(NOT CMAKE_INSTALL_DEBUG_LIBRARIES_ONLY)
  156. set(__install__libs
  157. "${MSVC${v}_CRT_DIR}/msvcp${v}0.dll"
  158. "${MSVC${v}_CRT_DIR}/msvcr${v}0.dll"
  159. )
  160. else()
  161. set(__install__libs)
  162. endif()
  163. if(CMAKE_INSTALL_DEBUG_LIBRARIES)
  164. set(MSVC${v}_CRT_DIR
  165. "${MSVC${v}_REDIST_DIR}/Debug_NonRedist/${CMAKE_MSVC_ARCH}/Microsoft.VC${v}0.DebugCRT")
  166. set(__install__libs ${__install__libs}
  167. "${MSVC${v}_CRT_DIR}/msvcp${v}0d.dll"
  168. "${MSVC${v}_CRT_DIR}/msvcr${v}0d.dll"
  169. )
  170. endif()
  171. endmacro()
  172. if(MSVC10)
  173. MSVCRT_FILES_FOR_VERSION(10)
  174. endif()
  175. if(MSVC11)
  176. MSVCRT_FILES_FOR_VERSION(11)
  177. endif()
  178. if(MSVC12)
  179. MSVCRT_FILES_FOR_VERSION(12)
  180. endif()
  181. if(MSVC14)
  182. MSVCRT_FILES_FOR_VERSION(14)
  183. endif()
  184. if(CMAKE_INSTALL_MFC_LIBRARIES)
  185. if(MSVC70)
  186. set(__install__libs ${__install__libs}
  187. "${SYSTEMROOT}/system32/mfc70.dll"
  188. )
  189. endif()
  190. if(MSVC71)
  191. set(__install__libs ${__install__libs}
  192. "${SYSTEMROOT}/system32/mfc71.dll"
  193. )
  194. endif()
  195. if(MSVC80)
  196. if(CMAKE_INSTALL_DEBUG_LIBRARIES)
  197. set(MSVC80_MFC_DIR
  198. "${MSVC80_REDIST_DIR}/Debug_NonRedist/${CMAKE_MSVC_ARCH}/Microsoft.VC80.DebugMFC")
  199. set(__install__libs ${__install__libs}
  200. "${MSVC80_MFC_DIR}/Microsoft.VC80.DebugMFC.manifest"
  201. "${MSVC80_MFC_DIR}/mfc80d.dll"
  202. "${MSVC80_MFC_DIR}/mfc80ud.dll"
  203. "${MSVC80_MFC_DIR}/mfcm80d.dll"
  204. "${MSVC80_MFC_DIR}/mfcm80ud.dll"
  205. )
  206. endif()
  207. set(MSVC80_MFC_DIR "${MSVC80_REDIST_DIR}/${CMAKE_MSVC_ARCH}/Microsoft.VC80.MFC")
  208. # Install the manifest that allows DLLs to be loaded from the
  209. # directory containing the executable.
  210. if(NOT CMAKE_INSTALL_DEBUG_LIBRARIES_ONLY)
  211. set(__install__libs ${__install__libs}
  212. "${MSVC80_MFC_DIR}/Microsoft.VC80.MFC.manifest"
  213. "${MSVC80_MFC_DIR}/mfc80.dll"
  214. "${MSVC80_MFC_DIR}/mfc80u.dll"
  215. "${MSVC80_MFC_DIR}/mfcm80.dll"
  216. "${MSVC80_MFC_DIR}/mfcm80u.dll"
  217. )
  218. endif()
  219. # include the language dll's for vs8 as well as the actuall dll's
  220. set(MSVC80_MFCLOC_DIR "${MSVC80_REDIST_DIR}/${CMAKE_MSVC_ARCH}/Microsoft.VC80.MFCLOC")
  221. # Install the manifest that allows DLLs to be loaded from the
  222. # directory containing the executable.
  223. set(__install__libs ${__install__libs}
  224. "${MSVC80_MFCLOC_DIR}/Microsoft.VC80.MFCLOC.manifest"
  225. "${MSVC80_MFCLOC_DIR}/mfc80chs.dll"
  226. "${MSVC80_MFCLOC_DIR}/mfc80cht.dll"
  227. "${MSVC80_MFCLOC_DIR}/mfc80enu.dll"
  228. "${MSVC80_MFCLOC_DIR}/mfc80esp.dll"
  229. "${MSVC80_MFCLOC_DIR}/mfc80deu.dll"
  230. "${MSVC80_MFCLOC_DIR}/mfc80fra.dll"
  231. "${MSVC80_MFCLOC_DIR}/mfc80ita.dll"
  232. "${MSVC80_MFCLOC_DIR}/mfc80jpn.dll"
  233. "${MSVC80_MFCLOC_DIR}/mfc80kor.dll"
  234. )
  235. endif()
  236. if(MSVC90)
  237. if(CMAKE_INSTALL_DEBUG_LIBRARIES)
  238. set(MSVC90_MFC_DIR
  239. "${MSVC90_REDIST_DIR}/Debug_NonRedist/${CMAKE_MSVC_ARCH}/Microsoft.VC90.DebugMFC")
  240. set(__install__libs ${__install__libs}
  241. "${MSVC90_MFC_DIR}/Microsoft.VC90.DebugMFC.manifest"
  242. "${MSVC90_MFC_DIR}/mfc90d.dll"
  243. "${MSVC90_MFC_DIR}/mfc90ud.dll"
  244. "${MSVC90_MFC_DIR}/mfcm90d.dll"
  245. "${MSVC90_MFC_DIR}/mfcm90ud.dll"
  246. )
  247. endif()
  248. set(MSVC90_MFC_DIR "${MSVC90_REDIST_DIR}/${CMAKE_MSVC_ARCH}/Microsoft.VC90.MFC")
  249. # Install the manifest that allows DLLs to be loaded from the
  250. # directory containing the executable.
  251. if(NOT CMAKE_INSTALL_DEBUG_LIBRARIES_ONLY)
  252. set(__install__libs ${__install__libs}
  253. "${MSVC90_MFC_DIR}/Microsoft.VC90.MFC.manifest"
  254. "${MSVC90_MFC_DIR}/mfc90.dll"
  255. "${MSVC90_MFC_DIR}/mfc90u.dll"
  256. "${MSVC90_MFC_DIR}/mfcm90.dll"
  257. "${MSVC90_MFC_DIR}/mfcm90u.dll"
  258. )
  259. endif()
  260. # include the language dll's for vs9 as well as the actuall dll's
  261. set(MSVC90_MFCLOC_DIR "${MSVC90_REDIST_DIR}/${CMAKE_MSVC_ARCH}/Microsoft.VC90.MFCLOC")
  262. # Install the manifest that allows DLLs to be loaded from the
  263. # directory containing the executable.
  264. set(__install__libs ${__install__libs}
  265. "${MSVC90_MFCLOC_DIR}/Microsoft.VC90.MFCLOC.manifest"
  266. "${MSVC90_MFCLOC_DIR}/mfc90chs.dll"
  267. "${MSVC90_MFCLOC_DIR}/mfc90cht.dll"
  268. "${MSVC90_MFCLOC_DIR}/mfc90enu.dll"
  269. "${MSVC90_MFCLOC_DIR}/mfc90esp.dll"
  270. "${MSVC90_MFCLOC_DIR}/mfc90deu.dll"
  271. "${MSVC90_MFCLOC_DIR}/mfc90fra.dll"
  272. "${MSVC90_MFCLOC_DIR}/mfc90ita.dll"
  273. "${MSVC90_MFCLOC_DIR}/mfc90jpn.dll"
  274. "${MSVC90_MFCLOC_DIR}/mfc90kor.dll"
  275. )
  276. endif()
  277. macro(MFC_FILES_FOR_VERSION version)
  278. set(v "${version}")
  279. # Multi-Byte Character Set versions of MFC are available as optional
  280. # addon since Visual Studio 12. So for version 12 or higher, check
  281. # whether they are available and exclude them if they are not.
  282. if("${v}" LESS 12 OR EXISTS "${MSVC${v}_MFC_DIR}/mfc${v}0d.dll")
  283. set(mbcs ON)
  284. else()
  285. set(mbcs OFF)
  286. endif()
  287. if(CMAKE_INSTALL_DEBUG_LIBRARIES)
  288. set(MSVC${v}_MFC_DIR
  289. "${MSVC${v}_REDIST_DIR}/Debug_NonRedist/${CMAKE_MSVC_ARCH}/Microsoft.VC${v}0.DebugMFC")
  290. set(__install__libs ${__install__libs}
  291. "${MSVC${v}_MFC_DIR}/mfc${v}0ud.dll"
  292. "${MSVC${v}_MFC_DIR}/mfcm${v}0ud.dll"
  293. )
  294. if(mbcs)
  295. set(__install__libs ${__install__libs}
  296. "${MSVC${v}_MFC_DIR}/mfc${v}0d.dll"
  297. "${MSVC${v}_MFC_DIR}/mfcm${v}0d.dll"
  298. )
  299. endif()
  300. endif()
  301. set(MSVC${v}_MFC_DIR "${MSVC${v}_REDIST_DIR}/${CMAKE_MSVC_ARCH}/Microsoft.VC${v}0.MFC")
  302. if(NOT CMAKE_INSTALL_DEBUG_LIBRARIES_ONLY)
  303. set(__install__libs ${__install__libs}
  304. "${MSVC${v}_MFC_DIR}/mfc${v}0u.dll"
  305. "${MSVC${v}_MFC_DIR}/mfcm${v}0u.dll"
  306. )
  307. if(mbcs)
  308. set(__install__libs ${__install__libs}
  309. "${MSVC${v}_MFC_DIR}/mfc${v}0.dll"
  310. "${MSVC${v}_MFC_DIR}/mfcm${v}0.dll"
  311. )
  312. endif()
  313. endif()
  314. # include the language dll's as well as the actuall dll's
  315. set(MSVC${v}_MFCLOC_DIR "${MSVC${v}_REDIST_DIR}/${CMAKE_MSVC_ARCH}/Microsoft.VC${v}0.MFCLOC")
  316. set(__install__libs ${__install__libs}
  317. "${MSVC${v}_MFCLOC_DIR}/mfc${v}0chs.dll"
  318. "${MSVC${v}_MFCLOC_DIR}/mfc${v}0cht.dll"
  319. "${MSVC${v}_MFCLOC_DIR}/mfc${v}0deu.dll"
  320. "${MSVC${v}_MFCLOC_DIR}/mfc${v}0enu.dll"
  321. "${MSVC${v}_MFCLOC_DIR}/mfc${v}0esn.dll"
  322. "${MSVC${v}_MFCLOC_DIR}/mfc${v}0fra.dll"
  323. "${MSVC${v}_MFCLOC_DIR}/mfc${v}0ita.dll"
  324. "${MSVC${v}_MFCLOC_DIR}/mfc${v}0jpn.dll"
  325. "${MSVC${v}_MFCLOC_DIR}/mfc${v}0kor.dll"
  326. "${MSVC${v}_MFCLOC_DIR}/mfc${v}0rus.dll"
  327. )
  328. endmacro()
  329. if(MSVC10)
  330. MFC_FILES_FOR_VERSION(10)
  331. endif()
  332. if(MSVC11)
  333. MFC_FILES_FOR_VERSION(11)
  334. endif()
  335. if(MSVC12)
  336. MFC_FILES_FOR_VERSION(12)
  337. endif()
  338. if(MSVC14)
  339. MFC_FILES_FOR_VERSION(14)
  340. endif()
  341. endif()
  342. foreach(lib
  343. ${__install__libs}
  344. )
  345. if(EXISTS ${lib})
  346. set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS
  347. ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS} ${lib})
  348. else()
  349. if(NOT CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS)
  350. message(WARNING "system runtime library file does not exist: '${lib}'")
  351. # This warning indicates an incomplete Visual Studio installation
  352. # or a bug somewhere above here in this file.
  353. # If you would like to avoid this warning, fix the real problem, or
  354. # set CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS before including
  355. # this file.
  356. endif()
  357. endif()
  358. endforeach()
  359. endif()
  360. if(WATCOM)
  361. get_filename_component( CompilerPath ${CMAKE_C_COMPILER} PATH )
  362. if(CMAKE_C_COMPILER_VERSION)
  363. set(_compiler_version ${CMAKE_C_COMPILER_VERSION})
  364. else()
  365. set(_compiler_version ${CMAKE_CXX_COMPILER_VERSION})
  366. endif()
  367. string(REGEX MATCHALL "[0-9]+" _watcom_version_list "${_compiler_version}")
  368. list(GET _watcom_version_list 0 _watcom_major)
  369. list(GET _watcom_version_list 1 _watcom_minor)
  370. set( __install__libs
  371. ${CompilerPath}/clbr${_watcom_major}${_watcom_minor}.dll
  372. ${CompilerPath}/mt7r${_watcom_major}${_watcom_minor}.dll
  373. ${CompilerPath}/plbr${_watcom_major}${_watcom_minor}.dll )
  374. foreach(lib
  375. ${__install__libs}
  376. )
  377. if(EXISTS ${lib})
  378. set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS
  379. ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS} ${lib})
  380. else()
  381. if(NOT CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS)
  382. message(WARNING "system runtime library file does not exist: '${lib}'")
  383. # This warning indicates an incomplete Watcom installation
  384. # or a bug somewhere above here in this file.
  385. # If you would like to avoid this warning, fix the real problem, or
  386. # set CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS before including
  387. # this file.
  388. endif()
  389. endif()
  390. endforeach()
  391. endif()
  392. # Include system runtime libraries in the installation if any are
  393. # specified by CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS.
  394. if(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS)
  395. if(NOT CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP)
  396. if(NOT CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION)
  397. if(WIN32)
  398. set(CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION bin)
  399. else()
  400. set(CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION lib)
  401. endif()
  402. endif()
  403. install(PROGRAMS ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS}
  404. DESTINATION ${CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION})
  405. endif()
  406. endif()