From 7d276b1aeef426d8e34b0aa7741ee5b28cdd6cbd Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 5 Oct 2024 15:02:16 -0700 Subject: Port to FreeBSD. --- cstring/CMakeLists.txt | 9 +++++++-- 1 file 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) set(CMAKE_C_EXTENSIONS Off) add_library(cstring + include/cstring.h src/cstring.c) target_include_directories(cstring PUBLIC include) target_link_libraries(cstring PUBLIC - cassert - -lbsd) + cassert) + +if(LINUX) + target_link_libraries(cstring PUBLIC + -lbsd) +endif() -- cgit v1.2.3