Skip to content

Commit 8e293b8

Browse files
committed
Minor bug on FindNodeJS.cmake for mingw32 cross-compiling target.
1 parent dd0d687 commit 8e293b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/FindNodeJS.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ if(NOT NodeJS_LIBRARY)
385385

386386
# Compile node as a shared library if needed
387387
if(NOT EXISTS "${NodeJS_COMPILE_PATH}")
388-
if(WIN32)
388+
if(WIN32 AND MSVC)
389389
if(NOT EXISTS "${NodeJS_COMPILE_PATH}/node.dll" AND NOT EXISTS "${NodeJS_COMPILE_PATH}/libnode.dll")
390390
message(STATUS "Build NodeJS shared library")
391391

0 commit comments

Comments
 (0)