Giter Site home page Giter Site logo

Comments (3)

jcar87 avatar jcar87 commented on July 21, 2024

Hi @Nekto89 - thank you for reporting this.

Interesting, I can see why this is failing - I'm surprised that cmake is reporting clang and clang++ as the compilers, instead of cc and c++, which is (or used to be) the default behaviour.

What version of CMake are you using?

from cmake-conan.

Nekto89 avatar Nekto89 commented on July 21, 2024

Hi @Nekto89 - thank you for reporting this.

Interesting, I can see why this is failing - I'm surprised that cmake is reporting clang and clang++ as the compilers, instead of cc and c++, which is (or used to be) the default behaviour.

What version of CMake are you using?

cmake version 3.25.1

from cmake-conan.

jcar87 avatar jcar87 commented on July 21, 2024

I'm unable to reproduce this:

  • CMake 3.25.1
  • Xcode 14.1

A project like this:

cmake_minimum_required(VERSION 3.25)

project(foobar LANGUAGES C CXX)

CMake will report:

-- The C compiler identification is AppleClang 14.0.0.14000029
-- The CXX compiler identification is AppleClang 14.0.0.14000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode_14.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode_14.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done

The cc and c++ being detected is what should cause the current logic to do the right thing. Wondering what causes yours to report clang and clang++. Any chance you have set CC/CXX environment variables or similar?
Oh, perhaps it's the use of -GXcode that causes this! I'll have a look

Can reproduce this now with -GXcode - fix incoming!

from cmake-conan.

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.