summaryrefslogtreecommitdiffstats
path: root/cmake/DetectBSD.cmake
blob: 5c5b3b0ee6cb92b2b199b0771a43ac8b8fbe6c01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# BSD
if(${CMAKE_SYSTEM_NAME} MATCHES "BSD")
    set(BSD TRUE CACHE INTERNAL "BSD detection")
	if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
        set(FREEBSD TRUE CACHE INTERNAL "BSD detection")
	endif()
	if(${CMAKE_SYSTEM_NAME} MATCHES "kFreeBSD")
        set(KFREEBSD TRUE CACHE INTERNAL "BSD detection")
	endif()
	if(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
        set(OPENBSD TRUE CACHE INTERNAL "BSD detection")
	endif()
endif()

if(${CMAKE_SYSTEM_NAME} MATCHES "DragonFly")
    set(BSD TRUE CACHE INTERNAL "BSD detection")
    set(FREEBSD TRUE CACHE INTERNAL "BSD detection")
endif()