Use option to identify standalone

This commit is contained in:
LoveSy 2022-09-19 09:10:08 +08:00
parent 9324d71097
commit 0864159fc4
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View File

@ -114,6 +114,7 @@ android {
cFlags += flags
arguments += "-DANDROID_STL=none"
arguments += "-DCMAKE_BUILD_TYPE=Release"
arguments += "-DLSPLANT_STANDALONE=ON"
}
}
}

View File

@ -8,7 +8,7 @@ if (CCACHE)
set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE})
endif ()
if ("${ANDROID_STL}" STREQUAL "none")
if (LSPLANT_STANDALONE)
find_package(cxx REQUIRED CONFIG)
link_libraries(cxx::cxx)
endif()