|
@@ -2,9 +2,10 @@ file(GLOB MODULE_SOURCES "*.c")
|
|
|
|
|
|
add_library(${module_name} SHARED ${MODULE_SOURCES})
|
|
add_library(${module_name} SHARED ${MODULE_SOURCES})
|
|
|
|
|
|
-# TODO: Verify if correct
|
|
|
|
-if(EMBEDDED_UTF8_DECODE EQUAL 0)
|
|
|
|
- target_link_libraries(${module_name} PRIVATE unistring)
|
|
|
|
-else()
|
|
|
|
|
|
+option(EMBEDDED_UTF8_DECODE "Use embedded UTF-8 decode (websocket module)" OFF)
|
|
|
|
+
|
|
|
|
+if(EMBEDDED_UTF8_DECODE)
|
|
target_compile_definitions(${module_name} PRIVATE EMBEDDED_UTF8_DECODE)
|
|
target_compile_definitions(${module_name} PRIVATE EMBEDDED_UTF8_DECODE)
|
|
|
|
+else()
|
|
|
|
+ target_link_libraries(${module_name} PRIVATE unistring)
|
|
endif()
|
|
endif()
|