greentriangle / react-native-leveldb

Superfast React Native bindings for LevelDB
MIT License
84 stars 13 forks source link

CMake warnings during `configureCMakeDebug` on Android #27

Open noway opened 3 months ago

noway commented 3 months ago

Non-critical warnings, but probably worth fixing:

> Task :react-native-leveldb:configureCMakeDebug[arm64-v8a]
C/C++: debug|arm64-v8a :CMake Warning (dev) in CMakeLists.txt:
C/C++: debug|arm64-v8a :  No project() command is present.  The top-level CMakeLists.txt file must
C/C++: debug|arm64-v8a :  contain a literal, direct call to the project() command.  Add a line of
C/C++: debug|arm64-v8a :  code such as
C/C++: debug|arm64-v8a :    project(ProjectName)
C/C++: debug|arm64-v8a :  near the top of the file, but after cmake_minimum_required().
C/C++: debug|arm64-v8a :  CMake is pretending there is a "project(Project)" command on the first
C/C++: debug|arm64-v8a :  line.
C/C++: debug|arm64-v8a :This warning is for project developers.  Use -Wno-dev to suppress it.
C/C++: debug|arm64-v8a :CMake Warning at /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++: debug|arm64-v8a :  An old version of CMake is being used that cannot automatically detect
C/C++: debug|arm64-v8a :  compiler attributes.  Compiler identification is being bypassed.  Some
C/C++: debug|arm64-v8a :  values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++: debug|arm64-v8a :  CMake's built-in compiler identification.
C/C++: debug|arm64-v8a :Call Stack (most recent call first):
C/C++: debug|arm64-v8a :  /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++: debug|arm64-v8a :  /Users/user/Library/Android/sdk/cmake/3.18.1/share/cmake-3.18/Modules/CMakeDetermineSystem.cmake:93 (include)
C/C++: debug|arm64-v8a :CMake Warning at /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++: debug|arm64-v8a :  An old version of CMake is being used that cannot automatically detect
C/C++: debug|arm64-v8a :  compiler attributes.  Compiler identification is being bypassed.  Some
C/C++: debug|arm64-v8a :  values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++: debug|arm64-v8a :  CMake's built-in compiler identification.
C/C++: debug|arm64-v8a :Call Stack (most recent call first):
C/C++: debug|arm64-v8a :  /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/3.18.1-g262b901/CMakeSystem.cmake:6 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
C/C++: debug|arm64-v8a :CMake Warning at /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++: debug|arm64-v8a :  An old version of CMake is being used that cannot automatically detect
C/C++: debug|arm64-v8a :  compiler attributes.  Compiler identification is being bypassed.  Some
C/C++: debug|arm64-v8a :  values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++: debug|arm64-v8a :  CMake's built-in compiler identification.
C/C++: debug|arm64-v8a :Call Stack (most recent call first):
C/C++: debug|arm64-v8a :  /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/3.18.1-g262b901/CMakeSystem.cmake:6 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
C/C++: debug|arm64-v8a :CMake Warning at /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++: debug|arm64-v8a :  An old version of CMake is being used that cannot automatically detect
C/C++: debug|arm64-v8a :  compiler attributes.  Compiler identification is being bypassed.  Some
C/C++: debug|arm64-v8a :  values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++: debug|arm64-v8a :  CMake's built-in compiler identification.
C/C++: debug|arm64-v8a :Call Stack (most recent call first):
C/C++: debug|arm64-v8a :  /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/3.18.1-g262b901/CMakeSystem.cmake:6 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
C/C++: debug|arm64-v8a :CMake Warning at /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++: debug|arm64-v8a :  An old version of CMake is being used that cannot automatically detect
C/C++: debug|arm64-v8a :  compiler attributes.  Compiler identification is being bypassed.  Some
C/C++: debug|arm64-v8a :  values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++: debug|arm64-v8a :  CMake's built-in compiler identification.
C/C++: debug|arm64-v8a :Call Stack (most recent call first):
C/C++: debug|arm64-v8a :  /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/3.18.1-g262b901/CMakeSystem.cmake:6 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
C/C++: debug|arm64-v8a :CMake Warning at /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++: debug|arm64-v8a :  An old version of CMake is being used that cannot automatically detect
C/C++: debug|arm64-v8a :  compiler attributes.  Compiler identification is being bypassed.  Some
C/C++: debug|arm64-v8a :  values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++: debug|arm64-v8a :  CMake's built-in compiler identification.
C/C++: debug|arm64-v8a :Call Stack (most recent call first):
C/C++: debug|arm64-v8a :  /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/3.18.1-g262b901/CMakeSystem.cmake:6 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
C/C++: debug|arm64-v8a :CMake Warning at /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++: debug|arm64-v8a :  An old version of CMake is being used that cannot automatically detect
C/C++: debug|arm64-v8a :  compiler attributes.  Compiler identification is being bypassed.  Some
C/C++: debug|arm64-v8a :  values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++: debug|arm64-v8a :  CMake's built-in compiler identification.
C/C++: debug|arm64-v8a :Call Stack (most recent call first):
C/C++: debug|arm64-v8a :  /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/3.18.1-g262b901/CMakeSystem.cmake:6 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
C/C++: debug|arm64-v8a :CMake Warning at /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++: debug|arm64-v8a :  An old version of CMake is being used that cannot automatically detect
C/C++: debug|arm64-v8a :  compiler attributes.  Compiler identification is being bypassed.  Some
C/C++: debug|arm64-v8a :  values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++: debug|arm64-v8a :  CMake's built-in compiler identification.
C/C++: debug|arm64-v8a :Call Stack (most recent call first):
C/C++: debug|arm64-v8a :  /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/3.18.1-g262b901/CMakeSystem.cmake:6 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
C/C++: debug|arm64-v8a :CMake Warning at /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++: debug|arm64-v8a :  An old version of CMake is being used that cannot automatically detect
C/C++: debug|arm64-v8a :  compiler attributes.  Compiler identification is being bypassed.  Some
C/C++: debug|arm64-v8a :  values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++: debug|arm64-v8a :  CMake's built-in compiler identification.
C/C++: debug|arm64-v8a :Call Stack (most recent call first):
C/C++: debug|arm64-v8a :  /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/3.18.1-g262b901/CMakeSystem.cmake:6 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
C/C++: debug|arm64-v8a :CMake Warning at /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++: debug|arm64-v8a :  An old version of CMake is being used that cannot automatically detect
C/C++: debug|arm64-v8a :  compiler attributes.  Compiler identification is being bypassed.  Some
C/C++: debug|arm64-v8a :  values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++: debug|arm64-v8a :  CMake's built-in compiler identification.
C/C++: debug|arm64-v8a :Call Stack (most recent call first):
C/C++: debug|arm64-v8a :  /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/3.18.1-g262b901/CMakeSystem.cmake:6 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
C/C++: debug|arm64-v8a :CMake Warning at /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++: debug|arm64-v8a :  An old version of CMake is being used that cannot automatically detect
C/C++: debug|arm64-v8a :  compiler attributes.  Compiler identification is being bypassed.  Some
C/C++: debug|arm64-v8a :  values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++: debug|arm64-v8a :  CMake's built-in compiler identification.
C/C++: debug|arm64-v8a :Call Stack (most recent call first):
C/C++: debug|arm64-v8a :  /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/3.18.1-g262b901/CMakeSystem.cmake:6 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
C/C++: debug|arm64-v8a :CMake Warning at /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++: debug|arm64-v8a :  An old version of CMake is being used that cannot automatically detect
C/C++: debug|arm64-v8a :  compiler attributes.  Compiler identification is being bypassed.  Some
C/C++: debug|arm64-v8a :  values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++: debug|arm64-v8a :  CMake's built-in compiler identification.
C/C++: debug|arm64-v8a :Call Stack (most recent call first):
C/C++: debug|arm64-v8a :  /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/3.18.1-g262b901/CMakeSystem.cmake:6 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
C/C++: debug|arm64-v8a :CMake Warning at /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++: debug|arm64-v8a :  An old version of CMake is being used that cannot automatically detect
C/C++: debug|arm64-v8a :  compiler attributes.  Compiler identification is being bypassed.  Some
C/C++: debug|arm64-v8a :  values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++: debug|arm64-v8a :  CMake's built-in compiler identification.
C/C++: debug|arm64-v8a :Call Stack (most recent call first):
C/C++: debug|arm64-v8a :  /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/3.18.1-g262b901/CMakeSystem.cmake:6 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
C/C++: debug|arm64-v8a :CMake Warning at /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++: debug|arm64-v8a :  An old version of CMake is being used that cannot automatically detect
C/C++: debug|arm64-v8a :  compiler attributes.  Compiler identification is being bypassed.  Some
C/C++: debug|arm64-v8a :  values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++: debug|arm64-v8a :  CMake's built-in compiler identification.
C/C++: debug|arm64-v8a :Call Stack (most recent call first):
C/C++: debug|arm64-v8a :  /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/3.18.1-g262b901/CMakeSystem.cmake:6 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
C/C++: debug|arm64-v8a :CMake Warning at /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++: debug|arm64-v8a :  An old version of CMake is being used that cannot automatically detect
C/C++: debug|arm64-v8a :  compiler attributes.  Compiler identification is being bypassed.  Some
C/C++: debug|arm64-v8a :  values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++: debug|arm64-v8a :  CMake's built-in compiler identification.
C/C++: debug|arm64-v8a :Call Stack (most recent call first):
C/C++: debug|arm64-v8a :  /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/3.18.1-g262b901/CMakeSystem.cmake:6 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
C/C++: debug|arm64-v8a :CMake Warning at /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++: debug|arm64-v8a :  An old version of CMake is being used that cannot automatically detect
C/C++: debug|arm64-v8a :  compiler attributes.  Compiler identification is being bypassed.  Some
C/C++: debug|arm64-v8a :  values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++: debug|arm64-v8a :  CMake's built-in compiler identification.
C/C++: debug|arm64-v8a :Call Stack (most recent call first):
C/C++: debug|arm64-v8a :  /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/3.18.1-g262b901/CMakeSystem.cmake:6 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
C/C++: debug|arm64-v8a :CMake Warning at /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++: debug|arm64-v8a :  An old version of CMake is being used that cannot automatically detect
C/C++: debug|arm64-v8a :  compiler attributes.  Compiler identification is being bypassed.  Some
C/C++: debug|arm64-v8a :  values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++: debug|arm64-v8a :  CMake's built-in compiler identification.
C/C++: debug|arm64-v8a :Call Stack (most recent call first):
C/C++: debug|arm64-v8a :  /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/3.18.1-g262b901/CMakeSystem.cmake:6 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
C/C++: debug|arm64-v8a :CMake Warning at /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++: debug|arm64-v8a :  An old version of CMake is being used that cannot automatically detect
C/C++: debug|arm64-v8a :  compiler attributes.  Compiler identification is being bypassed.  Some
C/C++: debug|arm64-v8a :  values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++: debug|arm64-v8a :  CMake's built-in compiler identification.
C/C++: debug|arm64-v8a :Call Stack (most recent call first):
C/C++: debug|arm64-v8a :  /Users/user/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/3.18.1-g262b901/CMakeSystem.cmake:6 (include)
C/C++: debug|arm64-v8a :  /Users/user/project/project-rn/node_modules/react-native-leveldb/android/.cxx/Debug/4d6q3bef/arm64-v8a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)

I'm using

    "react-native-leveldb": "3.2.0",
    "react-native": "0.69.12",
pranshuchittora commented 3 months ago

Hey @noway I can understand how annoying these warnings are, I have raised a PR to fixed the project attribute issue. But the cmake version issue in currently not fixable due to the leveldb dependency using an older version of it. https://github.com/google/leveldb/blob/6721eda0b46654d3531b4a0a00c90dc659b337d6/CMakeLists.txt#L5