Skip to content

Error building a static version in macOS  #204

@david-antiteum

Description

@david-antiteum

Hi,

While doing a port for Vcpkg I have found a build problem in macOS (10.15.4 Xcode 11.4) that can be reproduce with this commands:

git clone --recurse-submodules https://github.com/getsentry/sentry-native.git
cd sentry-native
cmake -B build -DSENTRY_BACKEND=crashpad -DSENTRY_TRANSPORT=curl -DSENTRY_BUILD_TESTS=OFF -DSENTRY_BUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF

CMake error is:

CMake Error at CMakeLists.txt:136 (install):
  install TARGETS given target "getopt" which does not exist.
Call Stack (most recent call first):
  CMakeLists.txt:264 (sentry_install)

Shared build compiles with no issues.

Thanks,

David

Metadata

Metadata

Assignees

No one assigned

    Labels

    Help WantedWe won't work on this immediately, but we will accept PRs
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions