diff options
author | Kamil Rytarowski <n54@gmx.com> | 2016-01-24 02:50:16 +0300 |
---|---|---|
committer | Kamil Rytarowski <n54@gmx.com> | 2016-01-24 02:50:16 +0300 |
commit | 103375d7f0b1c7882e7867ccfd8035469fff5bd0 (patch) | |
tree | c458f6a4e362fee80565ab377d6aed354968cba6 /src/Native | |
parent | e2d83425231d9954f2694636010be38e01cc6517 (diff) |
Add new platform in src/Native/CMakeLists.txt: NetBSD
Diffstat (limited to 'src/Native')
-rw-r--r-- | src/Native/CMakeLists.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Native/CMakeLists.txt b/src/Native/CMakeLists.txt index 6f5c1e1a8..00f0a6d33 100644 --- a/src/Native/CMakeLists.txt +++ b/src/Native/CMakeLists.txt @@ -59,6 +59,20 @@ if(CMAKE_SYSTEM_NAME STREQUAL Linux) set(CLR_CMAKE_PLATFORM_LINUX 1) endif(CMAKE_SYSTEM_NAME STREQUAL Linux) +if(CMAKE_SYSTEM_NAME STREQUAL NetBSD) + set(CLR_CMAKE_PLATFORM_UNIX 1) + if(CMAKE_SYSTEM_PROCESSOR STREQUAL x86_64) + set(CLR_CMAKE_PLATFORM_UNIX_TARGET_AMD64 1) + elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL armv7l) + set(CLR_CMAKE_PLATFORM_UNIX_TARGET_ARM 1) + elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL aarch64) + set(CLR_CMAKE_PLATFORM_UNIX_TARGET_ARM64 1) + else() + clr_unknown_arch() + endif() + set(CLR_CMAKE_PLATFORM_NETBSD 1) +endif(CMAKE_SYSTEM_NAME STREQUAL NetBSD) + if (CLR_CMAKE_PLATFORM_UNIX) include_directories(inc/unix) |