Merge pull request #93 from ahmedyarub/ay/shared_static_libwebsockets
Automatically detect shared/static versions of libwebsockets
This commit is contained in:
@@ -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)
|
||||||
Reference in New Issue
Block a user