mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 04:31:37 +08:00
cmake: try to disable compile warning of C4819
This commit is contained in:
parent
8f679831bc
commit
310b60276c
@ -171,7 +171,7 @@ if(UNIX)
|
|||||||
"-Wno-error=extra;-Wno-error=missing-field-initializers;-Wno-error=type-limits")
|
"-Wno-error=extra;-Wno-error=missing-field-initializers;-Wno-error=type-limits")
|
||||||
elseif(WIN32)
|
elseif(WIN32)
|
||||||
# TODO: /wd4819 应该是不会生效
|
# TODO: /wd4819 应该是不会生效
|
||||||
set(COMPILE_OPTIONS_DEFAULT "/wd4819")
|
set(COMPILE_OPTIONS_DEFAULT "/wd4566;/wd4819")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# mediakit 以及各个 runtime 依赖
|
# mediakit 以及各个 runtime 依赖
|
||||||
|
@ -41,11 +41,13 @@ endif()
|
|||||||
add_executable(MediaServer ${MediaServer_SRC_LIST})
|
add_executable(MediaServer ${MediaServer_SRC_LIST})
|
||||||
target_compile_definitions(MediaServer
|
target_compile_definitions(MediaServer
|
||||||
PRIVATE ${COMPILE_DEFINITIONS})
|
PRIVATE ${COMPILE_DEFINITIONS})
|
||||||
|
target_compile_options(MediaServer
|
||||||
install(TARGETS MediaServer DESTINATION ${INSTALL_PATH_RUNTIME})
|
PRIVATE ${COMPILE_OPTIONS_DEFAULT})
|
||||||
|
|
||||||
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||||
target_link_libraries(MediaServer -Wl,--start-group ${MK_LINK_LIBRARIES} -Wl,--end-group)
|
target_link_libraries(MediaServer -Wl,--start-group ${MK_LINK_LIBRARIES} -Wl,--end-group)
|
||||||
else()
|
else()
|
||||||
target_link_libraries(MediaServer ${MK_LINK_LIBRARIES})
|
target_link_libraries(MediaServer ${MK_LINK_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
install(TARGETS MediaServer DESTINATION ${INSTALL_PATH_RUNTIME})
|
||||||
|
Loading…
Reference in New Issue
Block a user