diff options
author | 3gg <3gg@shellblade.net> | 2024-10-05 15:02:16 -0700 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2024-10-05 15:03:14 -0700 |
commit | 7d276b1aeef426d8e34b0aa7741ee5b28cdd6cbd (patch) | |
tree | 81c16721b7733f005e706959de2dbac5793d8659 /cstring | |
parent | 3a2612e61b74f246f62585db1be23158f0243dd6 (diff) |
Port to FreeBSD.
Diffstat (limited to 'cstring')
-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() | ||