Skip to content

Commit

Permalink
fix node
Browse files Browse the repository at this point in the history
  • Loading branch information
BYVoid committed Jul 26, 2024
1 parent 78156a8 commit 2df7c7f
Show file tree
Hide file tree
Showing 4 changed files with 472 additions and 455 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ add_definitions(

if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
add_definitions(
-std=c++17
-std=c++14
-Wall
)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pthread")
Expand All @@ -163,7 +163,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
endif ()
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
add_definitions(
-std=c++17
-std=c++14
-Wall
)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pthread")
Expand Down
2 changes: 1 addition & 1 deletion node/opencc.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
*/

const path = require('path');
const bindingPath = require('node-pre-gyp').find(require.resolve('../package.json'));
const bindingPath = require('@mapbox/node-pre-gyp').find(require.resolve('../package.json'));
const binding = require(bindingPath);

const assetsPath = path.dirname(bindingPath);
Expand Down
Loading

0 comments on commit 2df7c7f

Please sign in to comment.