File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -87,13 +87,14 @@ endif()
87
87
if (ENABLE_JS_RUNTIME)
88
88
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_JS_RUNTIME" )
89
89
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DENABLE_JS_RUNTIME" )
90
- elseif (TARGET_PLATFORM_MACOS )
90
+ else ( )
91
91
set (GENERIC_NAPI TRUE )
92
92
endif ()
93
93
94
94
message (STATUS "TARGET_PLATFORM = ${TARGET_PLATFORM} " )
95
95
message (STATUS "TARGET_ENGINE = ${TARGET_ENGINE} " )
96
96
message (STATUS "ENABLE_JS_RUNTIME = ${ENABLE_JS_RUNTIME} " )
97
+ message (STATUS "GENERIC_NAPI = ${GENERIC_NAPI} " )
97
98
98
99
# Set up sources
99
100
@@ -418,12 +419,12 @@ if(TARGET_ENGINE_QUICKJS)
418
419
)
419
420
endif ()
420
421
421
- # if (GENERIC_NAPI)
422
- target_link_options (
423
- ${NAME}
424
- PRIVATE
425
- "-Wl"
426
- "-undefined"
427
- "dynamic_lookup"
428
- )
429
- # endif()
422
+ if (GENERIC_NAPI)
423
+ target_link_options (
424
+ ${NAME}
425
+ PRIVATE
426
+ "-Wl"
427
+ "-undefined"
428
+ "dynamic_lookup"
429
+ )
430
+ endif ()
You can’t perform that action at this time.
0 commit comments