Merge pull request #93 from ahmedyarub/ay/shared_static_libwebsockets

Automatically detect shared/static versions of libwebsockets
This commit is contained in:
Kubernetes Prow Robot
2021-11-16 15:22:32 -08:00
committed by GitHub

View File

@@ -1,2 +1,8 @@
target_link_libraries(${pkgName} PRIVATE yaml websockets_shared) if (TARGET websockets_shared)
set(WEBSOCKETS websockets_shared)
else()
set(WEBSOCKETS websockets)
endif()
target_link_libraries(${pkgName} PRIVATE yaml ${WEBSOCKETS})
set_target_properties(${pkgName} PROPERTIES LINKER_LANGUAGE C) set_target_properties(${pkgName} PROPERTIES LINKER_LANGUAGE C)