Skip to content

Commit c80963c

Browse files
committed
build: Add CMAKE_SYSTEM_NAME handling for NetBSD.
1 parent daa53a0 commit c80963c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ TARGET_OS_CMAKE=${TARGET_OS_AND_ABI%-*} # Example: linux
1616
case $TARGET_OS_CMAKE in
1717
macos*) TARGET_OS_CMAKE="Darwin";;
1818
freebsd*) TARGET_OS_CMAKE="FreeBSD";;
19+
netbsd*) TARGET_OS_CMAKE="NetBSD";;
1920
windows*) TARGET_OS_CMAKE="Windows";;
2021
linux*) TARGET_OS_CMAKE="Linux";;
2122
native) TARGET_OS_CMAKE="";;

build.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ set TARGET_OS_CMAKE=
2525
FOR /F "tokens=2,3 delims=-" %%i IN ("%TARGET%") DO (
2626
IF "%%i"=="macos" set "TARGET_OS_CMAKE=Darwin"
2727
IF "%%i"=="freebsd" set "TARGET_OS_CMAKE=FreeBSD"
28+
IF "%%i"=="netbsd" set "TARGET_OS_CMAKE=NetBSD"
2829
IF "%%i"=="windows" set "TARGET_OS_CMAKE=Windows"
2930
IF "%%i"=="linux" set "TARGET_OS_CMAKE=Linux"
3031
set TARGET_ABI=%%j

0 commit comments

Comments
 (0)