Skip to content

Commit

Permalink
fix: target_link_libraries use ${qjs_libs}
Browse files Browse the repository at this point in the history
  • Loading branch information
zeromake committed Sep 10, 2024
1 parent b5183ae commit 4727d01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ if(BUILD_EXAMPLES)
)
target_compile_definitions(fib PRIVATE JS_SHARED_LIBRARY)
if(WIN32)
target_link_libraries(fib qjs)
target_link_libraries(fib ${qjs_libs})
endif()
if(APPLE)
target_link_options(fib PRIVATE -undefined dynamic_lookup)
Expand All @@ -310,7 +310,7 @@ if(BUILD_EXAMPLES)
)
target_compile_definitions(point PRIVATE JS_SHARED_LIBRARY)
if(WIN32)
target_link_libraries(point qjs)
target_link_libraries(point ${qjs_libs})
endif()
if(APPLE)
target_link_options(point PRIVATE -undefined dynamic_lookup)
Expand Down

0 comments on commit 4727d01

Please sign in to comment.