CMake: expose _XOPEN_SOURCE as PUBLIC

This commit is contained in:
nick black 2019-11-26 01:42:04 -05:00
parent 6b877f89a9
commit 6ee3de2b78
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -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)