Fix compile fail with android ndk 27 #887
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Compile error information:
CMake Warning (dev) at /data/android-sdk/ndk/27.0.12077973/build/cmake/flags.cmake:46 (if):
Policy CMP0057 is not set: Support new IN_LIST if() operator. Run "cmake
--help-policy CMP0057" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
IN_LIST will be interpreted as an operator when the policy is set to NEW.
Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
/home/l/Downloads/cmake-3.30.2/share/cmake-3.30/Modules/Platform/Android-Clang.cmake:23 (include)
/home/l/Downloads/cmake-3.30.2/share/cmake-3.30/Modules/Platform/Android-Clang-C.cmake:1 (include)
/home/l/Downloads/cmake-3.30.2/share/cmake-3.30/Modules/CMakeCInformation.cmake:48 (include)
CMakeLists.txt:4 (project)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Error at /data/android-sdk/ndk/27.0.12077973/build/cmake/flags.cmake:46 (if):
if given arguments:
Unknown arguments specified
Call Stack (most recent call first):
/home/l/Downloads/cmake-3.30.2/share/cmake-3.30/Modules/Platform/Android-Clang.cmake:23 (include)
/home/l/Downloads/cmake-3.30.2/share/cmake-3.30/Modules/Platform/Android-Clang-C.cmake:1 (include)
/home/l/Downloads/cmake-3.30.2/share/cmake-3.30/Modules/CMakeCInformation.cmake:48 (include)
CMakeLists.txt:4 (project)