From 6ee3de2b785e5387793abdf1958d8155cf544ac3 Mon Sep 17 00:00:00 2001 From: nick black Date: Tue, 26 Nov 2019 01:42:04 -0500 Subject: [PATCH] CMake: expose _XOPEN_SOURCE as PUBLIC --- CMakeLists.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f5cb03fc5..09e0c295c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,8 +38,8 @@ target_compile_options(notcurses -Wall -Wextra -W -Wshadow ) target_compile_definitions(notcurses - PRIVATE - _DEFAULT_SOURCE _XOPEN_SOURCE=600 + PUBLIC + _DEFAULT_SOURCE _XOPEN_SOURCE=700 ) file(GLOB BINSRCS CONFIGURE_DEPENDS src/bin/*.c) @@ -49,8 +49,9 @@ target_link_libraries(notcurses-demo PRIVATE notcurses ) -target_compile_options(notcurses-demo PRIVATE - -Wall -Wextra -W -Wshadow +target_compile_options(notcurses-demo + PRIVATE + -Wall -Wextra -W -Wshadow ) file(GLOB TESTSRCS CONFIGURE_DEPENDS tests/*.cpp)