mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 21:55:03 +02:00
Merge pull request #10478 from Icinga/windows-installer-compat
icinga-installer: statically link MSVC runtime library on CMake 3.15+
This commit is contained in:
commit
cbff5c5179
@ -19,6 +19,10 @@ set_target_properties(
|
|||||||
FOLDER Bin
|
FOLDER Bin
|
||||||
OUTPUT_NAME icinga2-installer
|
OUTPUT_NAME icinga2-installer
|
||||||
LINK_FLAGS "/SUBSYSTEM:WINDOWS"
|
LINK_FLAGS "/SUBSYSTEM:WINDOWS"
|
||||||
|
|
||||||
|
# Use a statically-linked runtime library as this binary is run during the installation process where the other DLLs
|
||||||
|
# may not have been installed already and the system-provided version may be too old.
|
||||||
|
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>"
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(icinga-installer shlwapi)
|
target_link_libraries(icinga-installer shlwapi)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user