InstallRequiredSystemLibrariesΒΆ
Include this module to search for compiler-provided system runtime libraries and add install rules for them. Some optional variables may be set prior to including the module to adjust behavior:
CMAKE_INSTALL_SYSTEM_RUNTIME_LIBSSpecify additional runtime libraries that may not be detected. After inclusion any detected libraries will be appended to this.
CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIPSet to TRUE to skip calling the
install(PROGRAMS)command to allow the includer to specify its own install rule, using the value ofCMAKE_INSTALL_SYSTEM_RUNTIME_LIBSto get the list of libraries.CMAKE_INSTALL_DEBUG_LIBRARIESSet to TRUE to install the debug runtime libraries when available with MSVC tools.
CMAKE_INSTALL_DEBUG_LIBRARIES_ONLYSet to TRUE to install only the debug runtime libraries with MSVC tools even if the release runtime libraries are also available.
CMAKE_INSTALL_UCRT_LIBRARIESAdded in version 3.6.
Set to TRUE to install the Windows Universal CRT libraries for app-local deployment (e.g. to Windows XP). This is meaningful only with MSVC from Visual Studio 2015 or higher.
Added in version 3.9: One may set a
CMAKE_WINDOWS_KITS_10_DIRenvironment variable to an absolute path to tell CMake to look for Windows 10 SDKs in a custom location. The specified directory is expected to containRedist/ucrt/DLLs/*directories.CMAKE_INSTALL_MFC_LIBRARIESSet to TRUE to install the MSVC MFC runtime libraries.
CMAKE_INSTALL_OPENMP_LIBRARIESSet to TRUE to install the MSVC OpenMP runtime libraries
CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATIONSpecify the
install(PROGRAMS)commandDESTINATIONoption. If not specified, the default isbinon Windows andlibelsewhere.CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGSSet to TRUE to disable warnings about required library files that do not exist. (For example, Visual Studio Express editions may not provide the redistributable files.)
CMAKE_INSTALL_SYSTEM_RUNTIME_COMPONENTAdded in version 3.3.
Specify the
install(PROGRAMS)commandCOMPONENToption. If not specified, no such option will be used.
Added in version 3.10: Support for installing Intel compiler runtimes.