From 2bf66e1cd1ff4f0091fa8b465ba24725f44cf102 Mon Sep 17 00:00:00 2001 From: Murat Dogan Date: Fri, 9 Sep 2022 14:21:08 +0300 Subject: [PATCH] extend LEGACY_NAPI_THREAD_SAFE_CALLBACK to v16 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8060ce77..26737a47 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -73,7 +73,7 @@ target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_BINARY_DIR}/_deps/libdatachannel-src/include ) -if( NODE_RUNTIMEVERSION VERSION_LESS "13.0.0") +if( NODE_RUNTIMEVERSION VERSION_LESS "16.0.0") # For compatibility with Node.js 12 # This should be removed along with the napi-thread-safe-callback-cancellable dependency when dropping support at end-of-life target_compile_definitions(${PROJECT_NAME} PRIVATE -DLEGACY_NAPI_THREAD_SAFE_CALLBACK)