Merge pull request #2 from UjuiUjuMandan/patch-2

Update CMakeLists.txt
This commit is contained in:
nyne
2024-12-18 16:40:11 +08:00
committed by GitHub

View File

@@ -13,6 +13,7 @@ set(JNI_LIB_NAME qjs)
include("${CMAKE_CURRENT_SOURCE_DIR}/../../../../cxx/quickjs.cmake") include("${CMAKE_CURRENT_SOURCE_DIR}/../../../../cxx/quickjs.cmake")
add_link_options("-Wl,--build-id=none")
add_library( # Sets the name of the library. add_library( # Sets the name of the library.
${JNI_LIB_NAME} ${JNI_LIB_NAME}
@@ -22,8 +23,6 @@ add_library( # Sets the name of the library.
# Provides a relative path to your source file(s). # Provides a relative path to your source file(s).
${CXX_LIB_DIR}/ffi.cpp ) ${CXX_LIB_DIR}/ffi.cpp )
add_link_options("-Wl,--build-id=none")
# Searches for a specified prebuilt library and stores the path as a # Searches for a specified prebuilt library and stores the path as a
# variable. Because CMake includes system libraries in the search path by # variable. Because CMake includes system libraries in the search path by
# default, you only need to specify the name of the public NDK library # default, you only need to specify the name of the public NDK library