Skip to content

Commit

Permalink
Use FreeBSD arch for Debian/kFreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
baruch committed Nov 15, 2015
1 parent 0b33d1b commit e8353be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,13 @@ endif()
find_library(tinfo_LIBRARY NAMES tinfo curses)

# Architecture files
message("SYSTEM NAME: ${CMAKE_SYSTEM_NAME}")
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
set(ARCH_SRC "arch/arch-linux.c")
set(ARCH_INCLUDE "arch/arch-linux.h")
elseif (${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD")
set(ARCH_SRC "arch/arch-freebsd.c")
set(ARCH_INCLUDE "arch/arch-posix.h")
elseif (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
set(ARCH_SRC "arch/arch-freebsd.c")
set(ARCH_INCLUDE "arch/arch-posix.h")
Expand Down

0 comments on commit e8353be

Please sign in to comment.