File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ add_library(${target_name} STATIC
38
38
${${target_name}_src}
39
39
)
40
40
41
+ if (LINUX )
42
+ target_compile_definitions (${target_name} PRIVATE _GNU_SOURCE )
43
+ endif ()
44
+
41
45
target_include_directories (${target_name}
42
46
INTERFACE ..
43
47
PRIVATE ../lua
Original file line number Diff line number Diff line change @@ -9,13 +9,13 @@ include(../cmake/CocosExternalConfig.cmake)
9
9
10
10
add_library (${target_name} STATIC IMPORTED GLOBAL )
11
11
12
- # include libs depended
13
- # add_subdirectory(../openssl ${CMAKE_BINARY_DIR}/websockets/openssl)
14
- # add_subdirectory(../uv ${CMAKE_BINARY_DIR}/websockets/uv)
15
-
16
12
set_target_properties (${target_name} PROPERTIES
17
13
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR} /include/${platform_name} "
18
14
)
15
+ set_target_properties (${target_name} PROPERTIES
16
+ INTERFACE_COMPILE_DEFINITIONS "LWS_WITH_LIBUV"
17
+ )
18
+
19
19
set_property (TARGET ${target_name} APPEND PROPERTY INTERFACE_LINK_LIBRARIES "ext_ssl" )
20
20
set_property (TARGET ${target_name} APPEND PROPERTY INTERFACE_LINK_LIBRARIES "ext_crypto" )
21
21
set_property (TARGET ${target_name} APPEND PROPERTY INTERFACE_LINK_LIBRARIES "ext_uv" )
You can’t perform that action at this time.
0 commit comments