Skip to content

(mac) cmake fails to find dotnet sdk when installed from homebrew #1

Description

@CapnRat

Using cmake --preset mono with a dotnet that has been installed with homebrew fails to find the correct sdk path.

-- Detecting CXX compile features - done
CMake Error at cmake/CSharpifyDotnet.cmake:17 (file):
  file failed to open for reading (No such file or directory):

    /opt/homebrew/bin/sdk/8.0.101/Microsoft.NETCoreSdk.BundledVersions.props
Call Stack (most recent call first):
  CMakeLists.txt:7 (include)


-- Using /opt/homebrew/bin/dotnet version 8.0.101 sdk

My sdk path is the following: /opt/homebrew/Cellar/dotnet/8.0.1/libexec/sdk/8.0.101

Probably need to query dotnet itself for the sdk path, rather than assuming the relative sdk location.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions