aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-09-02 11:18:09 +0200
committerAndreas Schneider <asn@samba.org>2018-10-23 15:38:36 +0200
commitaa9b0da96927e957f6ed0b1b9d51b16db90ea2af (patch)
treea2f00464b7b71e53c07279a1317404dc9e4d5849 /src
parent567261810523f2ab3af10268fc4a64d863ce2c93 (diff)
downloadsocket_wrapper-aa9b0da96927e957f6ed0b1b9d51b16db90ea2af.tar.gz
socket_wrapper-aa9b0da96927e957f6ed0b1b9d51b16db90ea2af.tar.xz
socket_wrapper-aa9b0da96927e957f6ed0b1b9d51b16db90ea2af.zip
cmake: Improve checks for compiler flags
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index d96f773..34eb638 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -4,6 +4,10 @@ include_directories(${CMAKE_BINARY_DIR})
add_library(socket_wrapper SHARED socket_wrapper.c)
+target_compile_options(socket_wrapper
+ PRIVATE
+ ${DEFAULT_C_COMPILE_FLAGS}
+ -D_GNU_SOURCE)
target_link_libraries(socket_wrapper ${SWRAP_REQUIRED_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
install(