Skip to content

Add FreeBSD and NetBSD support #5

@Ev1lT3rm1nal

Description

@Ev1lT3rm1nal

Add

--- a/cmake/zig-toolchain.cmake
+++ b/cmake/zig-toolchain.cmake
@@ -36,6 +36,10 @@ elseif(ZIG_OS STREQUAL "wasi")
     set(CMAKE_SYSTEM_NAME "WASI")
 elseif(ZIG_OS STREQUAL "emscripten")
     set(CMAKE_SYSTEM_NAME "Emscripten")
+elseif(ZIG_OS STREQUAL "freebsd")
+    set(CMAKE_SYSTEM_NAME "FreeBSD")
+elseif(ZIG_OS STREQUAL "netbsd")
+    set(CMAKE_SYSTEM_NAME "NetBSD")
 else()
     # NOTE: If this happens, add a new case with one of the following system names:
     # https://cmake.org/cmake/help/latest/variable/CMAKE_SYSTEM_NAME.html#system-names-known-to-cmake

plus: *-freebsd-none.cmake and *-netbsd-(none, eabi, eabihf).cmake

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions