aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-09-27 17:52:19 +0200
committerAndreas Schneider <asn@samba.org>2018-10-23 15:38:56 +0200
commit62080ac13dd2c5e38c49412bced652f1b314bda0 (patch)
tree40be7737a1f5e47996078764aa151ab017513575 /src
parentd3d419bd29c71cc5ea61ac0bdbf1736148a7cccc (diff)
downloadsocket_wrapper-62080ac13dd2c5e38c49412bced652f1b314bda0.tar.gz
socket_wrapper-62080ac13dd2c5e38c49412bced652f1b314bda0.tar.xz
socket_wrapper-62080ac13dd2c5e38c49412bced652f1b314bda0.zip
cmake: Use target_include_directories()
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 34eb638..e8ec16e 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,9 +1,9 @@
project(libsocket_wrapper C)
-include_directories(${CMAKE_BINARY_DIR})
-
add_library(socket_wrapper SHARED socket_wrapper.c)
-
+target_include_directories(socket_wrapper
+ PRIVATE
+ ${CMAKE_BINARY_DIR})
target_compile_options(socket_wrapper
PRIVATE
${DEFAULT_C_COMPILE_FLAGS}