mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-11 04:43:56 -07:00
[Fix-Warnings] Suppress C4100: unreferenced parameter for protobuf files.
This commit is contained in:
parent
858361e6d3
commit
01b2690237
1 changed files with 2 additions and 0 deletions
|
|
@ -172,6 +172,7 @@ if(${Protobuf_VERSION} VERSION_LESS "3.21.0.0")
|
|||
protobuf_generate_cpp(PROTO_SRCS PROTO_HDRS ${PROTO_FILES})
|
||||
|
||||
add_library(libcockatrice_protocol_pb ${PROTO_SRCS} ${PROTO_HDRS})
|
||||
target_compile_options(libcockatrice_protocol_pb PRIVATE /wd4100)
|
||||
set(libcockatrice_protocol_pb_LIBS ${PROTOBUF_LIBRARIES})
|
||||
if(UNIX)
|
||||
set(libcockatrice_protocol_pb_LIBS ${libcockatrice_protocol_pb_LIBS} -lpthread)
|
||||
|
|
@ -189,6 +190,7 @@ if(${Protobuf_VERSION} VERSION_LESS "3.21.0.0")
|
|||
endif()
|
||||
else()
|
||||
add_library(libcockatrice_protocol_pb ${PROTO_FILES})
|
||||
target_compile_options(libcockatrice_protocol_pb PRIVATE /wd4100)
|
||||
target_link_libraries(libcockatrice_protocol_pb PUBLIC protobuf::libprotobuf)
|
||||
set(PROTO_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}")
|
||||
target_include_directories(libcockatrice_protocol_pb PUBLIC "${PROTOBUF_INCLUDE_DIRS}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue