Giter Club home page Giter Club logo

Comments (5)

cranflavin avatar cranflavin commented on May 26, 2024

I hit the same issue as @Hatrickek (apparently 7 hours after). The workaround is good to get buildling/running, although it may be that skipping that if block means some of the build configurations won't be set up right. I have been using cmake/ninja/clang for builds.

from joltphysics.

mihe avatar mihe commented on May 26, 2024

if (("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows" OR "${CMAKE_SYSTEM_NAME}" STREQUAL "WindowsStore") AND NOT MINGW)

I would probably advise just replacing that whole thing with if (MSVC), which will be truthy whenever the compiler defines _MSC_VER, which would cover Microsoft's own cl as well as clang-cl, but none of the compilers adhering to the GCC-like interface, like MinGW-based compilers or (in this case) native clang.

elseif ("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux" OR "${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin" OR "${CMAKE_SYSTEM_NAME}" STREQUAL "iOS" OR MINGW OR EMSCRIPTEN OR ANDROID)

Then this could probably just be an else(), since any other supported compiler is likely to emulate the GCC-like interface anyway, including native clang on Windows.

from joltphysics.

jrouwe avatar jrouwe commented on May 26, 2024

I like @mihe's solution better. I've created #767 and it looks like it passes all builds. Can you let me know if this works for ninja too? (I don't use it)

from joltphysics.

cranflavin avatar cranflavin commented on May 26, 2024

I can confirm that @mihe's solution works for my cmake/clang/ninja setup.

from joltphysics.

Hatrickek avatar Hatrickek commented on May 26, 2024

It indeed works thanks 🙂

from joltphysics.

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.