aboutsummaryrefslogtreecommitdiff
path: root/cstring
diff options
context:
space:
mode:
Diffstat (limited to 'cstring')
-rw-r--r--cstring/CMakeLists.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/cstring/CMakeLists.txt b/cstring/CMakeLists.txt
index 99cc081..a1abde2 100644
--- a/cstring/CMakeLists.txt
+++ b/cstring/CMakeLists.txt
@@ -7,11 +7,16 @@ set(CMAKE_C_STANDARD_REQUIRED On)
7set(CMAKE_C_EXTENSIONS Off) 7set(CMAKE_C_EXTENSIONS Off)
8 8
9add_library(cstring 9add_library(cstring
10 include/cstring.h
10 src/cstring.c) 11 src/cstring.c)
11 12
12target_include_directories(cstring PUBLIC 13target_include_directories(cstring PUBLIC
13 include) 14 include)
14 15
15target_link_libraries(cstring PUBLIC 16target_link_libraries(cstring PUBLIC
16 cassert 17 cassert)
17 -lbsd) 18
19if(LINUX)
20 target_link_libraries(cstring PUBLIC
21 -lbsd)
22endif()