Since CPack can miss some system DLLs, make option ADD_SYSTEM_RUNTIMES, def OFF
This commit is contained in:
parent
25f51604d0
commit
22bc8da583
|
@ -344,6 +344,9 @@ endif()
|
||||||
### TODO: Check each of these builds
|
### TODO: Check each of these builds
|
||||||
##########################################################
|
##########################################################
|
||||||
# Need to ensure that system dlls get included in a binary distribution
|
# Need to ensure that system dlls get included in a binary distribution
|
||||||
|
# But since it can miss some... seems incomplete, make optionional
|
||||||
|
option( ADD_SYSTEM_RUNTIMES "Set ON to include system runtime DLLS in distribution" OFF )
|
||||||
|
if (MSVC AND ADD_SYSTEM_RUNTIMES)
|
||||||
if (NOT DEFINED CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS)
|
if (NOT DEFINED CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS)
|
||||||
# Visual Studio Express does include redistributable components so
|
# Visual Studio Express does include redistributable components so
|
||||||
# squelch the warning.
|
# squelch the warning.
|
||||||
|
@ -351,6 +354,7 @@ if (NOT DEFINED CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS)
|
||||||
endif ()
|
endif ()
|
||||||
set (CMAKE_INSTALL_DEBUG_LIBRARIES OFF)
|
set (CMAKE_INSTALL_DEBUG_LIBRARIES OFF)
|
||||||
include (InstallRequiredSystemLibraries)
|
include (InstallRequiredSystemLibraries)
|
||||||
|
endif ()
|
||||||
##########################################################
|
##########################################################
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
# MSI - this needs WiX Tooset installed and a path to candle.exe
|
# MSI - this needs WiX Tooset installed and a path to candle.exe
|
||||||
|
|
Loading…
Reference in a new issue