mirror of
https://github.com/charlesthobe/chdman.git
synced 2024-11-24 07:25:31 +00:00
statically link on MinGW
This commit is contained in:
parent
bf0ef08b5b
commit
789e6559cf
@ -72,3 +72,16 @@ target_link_libraries(chdman PRIVATE
|
|||||||
userenv
|
userenv
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(MINGW)
|
||||||
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static")
|
||||||
|
elseif(MSVC)
|
||||||
|
add_compile_definitions(
|
||||||
|
XML_STATIC
|
||||||
|
WIN32
|
||||||
|
_WIN32
|
||||||
|
_CRT_NONSTDC_NO_DEPRECATE
|
||||||
|
_CRT_SECURE_NO_DEPRECATE
|
||||||
|
_CRT_STDIO_LEGACY_WIDE_SPECIFIERS
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user