diff options
Diffstat (limited to 'cstring/CMakeLists.txt')
-rw-r--r-- | cstring/CMakeLists.txt | 9 |
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) | |||
7 | set(CMAKE_C_EXTENSIONS Off) | 7 | set(CMAKE_C_EXTENSIONS Off) |
8 | 8 | ||
9 | add_library(cstring | 9 | add_library(cstring |
10 | include/cstring.h | ||
10 | src/cstring.c) | 11 | src/cstring.c) |
11 | 12 | ||
12 | target_include_directories(cstring PUBLIC | 13 | target_include_directories(cstring PUBLIC |
13 | include) | 14 | include) |
14 | 15 | ||
15 | target_link_libraries(cstring PUBLIC | 16 | target_link_libraries(cstring PUBLIC |
16 | cassert | 17 | cassert) |
17 | -lbsd) | 18 | |
19 | if(LINUX) | ||
20 | target_link_libraries(cstring PUBLIC | ||
21 | -lbsd) | ||
22 | endif() | ||