1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-15 17:47:09 +00:00

Add preprocessor defitions that request posix features

This commit is contained in:
Pavel Labath 2012-07-20 20:59:07 +02:00
parent 2fcd9c74a8
commit 89720b4e81

View File

@ -64,8 +64,9 @@ find_package(Threads)
set(conky_libs ${CMAKE_THREAD_LIBS_INIT}) set(conky_libs ${CMAKE_THREAD_LIBS_INIT})
set(conky_includes ${CMAKE_BINARY_DIR}) set(conky_includes ${CMAKE_BINARY_DIR})
add_definitions(-D_LARGEFILE64_SOURCE) # Standard definitions add_definitions(-D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L) # Standard definitions
set(CMAKE_REQUIRED_DEFINITIONS "${CMAKE_REQUIRED_DEFINITIONS} -D_LARGEFILE64_SOURCE") set(CMAKE_REQUIRED_DEFINITIONS
"${CMAKE_REQUIRED_DEFINITIONS} -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L")
if(OS_DRAGONFLY) if(OS_DRAGONFLY)
set(conky_libs ${conky_libs} -L/usr/pkg/lib) set(conky_libs ${conky_libs} -L/usr/pkg/lib)