aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2024-10-05 15:02:16 -0700
committer3gg <3gg@shellblade.net>2024-10-05 15:03:14 -0700
commit7d276b1aeef426d8e34b0aa7741ee5b28cdd6cbd (patch)
tree81c16721b7733f005e706959de2dbac5793d8659
parent3a2612e61b74f246f62585db1be23158f0243dd6 (diff)
Port to FreeBSD.
-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()