mirror of
https://github.com/fmang/opustags.git
synced 2024-11-10 07:27:22 +01:00
Define _GNU_SOURCE for BSD compability
This commit is contained in:
parent
b369aea8d4
commit
9715f0242f
@ -9,6 +9,11 @@ project(
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
# opustags is mainly developed with glibc, which introduces a few
|
||||
# incompatibilites with BSDs, like getline not being defined by default.
|
||||
# _GNU_SOURCE should trigger BSD’s libc GNU compatibility mode to fix that.
|
||||
add_definitions(-D_GNU_SOURCE)
|
||||
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(OGG REQUIRED ogg)
|
||||
add_compile_options(${OGG_CFLAGS})
|
||||
|
Loading…
Reference in New Issue
Block a user