Giter VIP home page Giter VIP logo

Comments (2)

gpx1000 avatar gpx1000 commented on July 28, 2024

Hi from the peanut gallery.

The problem comes from this: android.toolchain.cmake line 42
Inhibit all of CMake's own NDK handling code.
set(CMAKE_SYSTEM_VERSION 1)

When using the toolchain that is shipped with the ndk there's a specific check for CMAKE_SYSTEM_VERSION greater than 22 at line 46 of the generated cdep-dependencies-config.cmake
if(CMAKE_SYSTEM_NAME STREQUAL "Android")
if(CMAKE_SYSTEM_VERSION GREATER 22)
...
else()
message (FATAL_ERROR "") <-- that's the failure you're seeing.

If you use a system cmake or one that doesn't use android.toolchain.cmake then the CMAKE_SYSTEM_VERSION will be set correctly and there's no need for the workaround you're deleting here.

CMAKE_SYSTEM_VERSION is a correct check to ensure that the platform OS being targeted is at a specific platform. It is populated by buildSystemTargetPlatform. I'd venture this is a working as designed bug.
The only real suggestion I'd have is to place a new variable in android.toolchain.cmake that doesn't conflict with CMAKE_SYSTEM_VERSION and cdep can check both? This would eliminate the need for the workaround and mask the issue to users.

from cdep.

ggfan avatar ggfan commented on July 28, 2024

yeah, that sounds correct. thank you!

from cdep.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.