Skip to content

Commit 09a198a

Browse files
committed
Added _GNU_SOURCE compile definition for macs
Avoids issue with boost/stacktrace when building on macOS. See boostorg/stacktrace#88 and comments therein.
1 parent fe7e2f2 commit 09a198a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ if(UNIX)
1616
set(CMAKE_PREFIX_PATH "/usr/lib64" ${CMAKE_PREFIX_PATH})
1717
endif()
1818

19+
# Specific definition for an issue with boost/stacktrace when building on macOS. See https://github.com/boostorg/stacktrace/issues/88 and comments therein.
20+
if(APPLE)
21+
add_compile_definitions(_GNU_SOURCE)
22+
endif()
23+
1924
# cxx 17
2025
set(CMAKE_CXX_STANDARD 17)
2126
set(CMAKE_CXX_STANDARD_REQUIRED ON)

0 commit comments

Comments
 (0)