--- ncbi-vdb/libs/kns/CMakeLists.txt.orig 2023-07-10 16:13:36 UTC +++ ncbi-vdb/libs/kns/CMakeLists.txt @@ -23,6 +23,7 @@ # =========================================================================== set ( UNIX_SRC unix/sysmgr.c unix/syssock.c unix/sysstream.c ) +set ( BSD_SRC ${UNIX_SRC} mac/sysendpoint.c mac/syspoll.c ) set ( LINUX_SRC ${UNIX_SRC} linux/sysendpoint.c linux/syspoll.c ) set ( MAC_SRC ${UNIX_SRC} mac/sysendpoint.c mac/syspoll.c ) set ( WIN_SRC win/sysendpoint.c win/sysmgr.c win/syssock.c win/sysstream.c ) @@ -30,6 +31,9 @@ set ( WIN_SRC win/sysendpoint.c win/sysmgr.c win/sysso if ( "windows" STREQUAL ${OS} ) set ( OS_SPECIFIC_SRC ${WIN_SRC} ) include_directories( win ) +elseif( "bsd" STREQUAL ${OS} ) + set ( OS_SPECIFIC_SRC ${BSD_SRC} ) + include_directories( unix ) elseif( "linux" STREQUAL ${OS} ) set ( OS_SPECIFIC_SRC ${LINUX_SRC} ) include_directories( unix )