File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ add_library(${target_name} STATIC
3838 ${${target_name}_src}
3939)
4040
41+ if (LINUX )
42+ target_compile_definitions (${target_name} PRIVATE _GNU_SOURCE )
43+ endif ()
44+
4145target_include_directories (${target_name}
4246 INTERFACE ..
4347 PRIVATE ../lua
Original file line number Diff line number Diff line change @@ -9,13 +9,13 @@ include(../cmake/CocosExternalConfig.cmake)
99
1010add_library (${target_name} STATIC IMPORTED GLOBAL )
1111
12- # include libs depended
13- # add_subdirectory(../openssl ${CMAKE_BINARY_DIR}/websockets/openssl)
14- # add_subdirectory(../uv ${CMAKE_BINARY_DIR}/websockets/uv)
15-
1612set_target_properties (${target_name} PROPERTIES
1713 INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR} /include/${platform_name} "
1814)
15+ set_target_properties (${target_name} PROPERTIES
16+ INTERFACE_COMPILE_DEFINITIONS "LWS_WITH_LIBUV"
17+ )
18+
1919set_property (TARGET ${target_name} APPEND PROPERTY INTERFACE_LINK_LIBRARIES "ext_ssl" )
2020set_property (TARGET ${target_name} APPEND PROPERTY INTERFACE_LINK_LIBRARIES "ext_crypto" )
2121set_property (TARGET ${target_name} APPEND PROPERTY INTERFACE_LINK_LIBRARIES "ext_uv" )
You can’t perform that action at this time.
0 commit comments