(ws client) use correct compilation defines so that spdlog is not used as a header only library (reduce binary size and increase compilation speed)

This commit is contained in:
Benjamin Sergeant
2019-12-25 09:03:57 -08:00
parent 9dfcd8ea69
commit d2acfd5d1f
4 changed files with 14 additions and 2 deletions

View File

@ -23,6 +23,8 @@ include_directories(
../ws
)
add_definitions(-DSPDLOG_COMPILED_LIB=1)
find_package(JsonCpp)
if (NOT JSONCPP_FOUND)
include_directories(../third_party/jsoncpp)
@ -98,4 +100,6 @@ target_link_libraries(ixwebsocket_unittest ixcrypto)
target_link_libraries(ixwebsocket_unittest ixcore)
target_link_libraries(ixwebsocket_unittest ixsentry)
target_link_libraries(ixwebsocket_unittest spdlog)
install(TARGETS ixwebsocket_unittest DESTINATION bin)