Skip to content

Commit

Permalink
extend LEGACY_NAPI_THREAD_SAFE_CALLBACK to v16
Browse files Browse the repository at this point in the history
  • Loading branch information
murat-dogan committed Sep 9, 2022
1 parent 46a2064 commit 2bf66e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2bf66e1

Please sign in to comment.