Skip to content

Error building a static version in macOS  #204

Closed

Description

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

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

Metadata

Assignees

No one assigned

    Labels

    help wantedWe won't work on this but would accept PRs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions