We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 759a530 commit e002331Copy full SHA for e002331
packages/gyp-to-cmake/src/transformer.ts
@@ -113,7 +113,10 @@ export function bindingGypToCmakeLists({
113
escapedIncludes.push("${CMAKE_JS_INC}");
114
}
115
116
- lines.push(`add_library(${targetName} SHARED ${escapedSources.join(" ")})`);
+ lines.push(
117
+ `add_library(${targetName} SHARED ${escapedSources.join(" ")})`,
118
+ `set_target_properties(${targetName} PROPERTIES PREFIX "" SUFFIX ".node")`,
119
+ );
120
121
if (libraries.length > 0) {
122
lines.push(
0 commit comments