From bc546d05a93794b1f0f1ef02e96f918533c250c3 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Wed, 13 Aug 2014 09:44:30 +0200 Subject: Define _GNU_SOURCE on one place only. There were several _GNU_SOURCE definitions scaterred in the build system. This patch always adds -D_GNU_SOURCE to the CFLAGS if building on a UNIX platform. Signed-off-by: Jakub Hrozek Reviewed-by: Andreas Schneider Reviewed-by: Michael Adam --- src/CMakeLists.txt | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b1ab95f..4b22d77 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -2,11 +2,6 @@ project(libsocket_wrapper C) include_directories(${CMAKE_BINARY_DIR}) -set_source_files_properties(socket_wrapper.c - PROPERTIES - COMPILE_DEFINITIONS - _GNU_SOURCE) - add_library(socket_wrapper SHARED socket_wrapper.c) target_link_libraries(socket_wrapper ${SWRAP_REQUIRED_LIBRARIES}) -- cgit