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 (websockets_shared)
|
||||
target_link_libraries(${WEBSOCKETS} websockets_shared)
|
||||
else()
|
||||
target_link_libraries(${WEBSOCKETS} websockets)
|
||||
endif()
|
||||
|
||||
target_link_libraries(${pkgName} PRIVATE yaml ${WEBSOCKETS})
|
||||
set_target_properties(${pkgName} PROPERTIES LINKER_LANGUAGE C)
|
||||
Reference in New Issue
Block a user