Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compile fail with android ndk 27 #887

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KangLin
Copy link

@KangLin KangLin commented Aug 29, 2024

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:

"hwaddress" "IN_LIST" "ANDROID_SANITIZE"

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)

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:

    "hwaddress" "IN_LIST" "ANDROID_SANITIZE"

  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)
@KangLin KangLin changed the title Fix compile fail in android ndk 17 Fix comile fail with android ndk 27 Aug 29, 2024
@KangLin KangLin changed the title Fix comile fail with android ndk 27 Fix compile fail with android ndk 27 Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant