Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Conversation

@janhenke
Copy link
Member

CMake does not find headers installed in /usr/local/include by default. On
FreeBSD this is the default location for libunwind.h though. Define
CMAKE_REQUIERED_INCLUDE to include both /usr/local/include and /usr/include.
This change only affects FreeBSD. Also FreeBSD (like Darwin) does not work with
_DEFAULT_SOURCE or _POSIX_C_SOURCE defined. Closes #547

This commit moves us one step closer to successfully compile on FreeBSD.

CMake does not find headers installed in /usr/local/include by default. On
FreeBSD this is the default location for libunwind.h though. Define
CMAKE_REQUIERED_INCLUDE to include both /usr/local/include and /usr/include.
This change only affects FreeBSD. Also FreeBSD (like Darwin) does not work with
_DEFAULT_SOURCE or _POSIX_C_SOURCE defined. Closes #547
@janvorli
Copy link
Member

LGTM, @jkotas can you also take a look please?

jkotas added a commit that referenced this pull request Mar 24, 2015
Force /usr/local/include as search path on FreeBSD
@jkotas jkotas merged commit ac4da2e into dotnet:master Mar 24, 2015
@janhenke janhenke deleted the freebsd-buildsupport branch March 24, 2015 20:50
@richlander richlander added the os-freebsd FreeBSD OS label Apr 28, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

os-freebsd FreeBSD OS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CMake does not find libunwind.h in /usr/local/include

5 participants