Added support DragonFly os from BSD family

This commit is contained in:
maficccc@gmail.com 2018-06-22 23:31:22 +02:00 committed by Martinfx
parent 1630597f08
commit 965cc8ab6f
2 changed files with 4 additions and 4 deletions

View File

@ -54,8 +54,8 @@ if(${PLATFORM} MATCHES "Desktop")
endif()
# Ugly crutch. Temporary workaround for #551
if("${CMAKE_SYSTEM_NAME}" MATCHES "(Free|Net|Open)BSD")
link_directories("/usr/local/lib")
if("${CMAKE_SYSTEM_NAME}" MATCHES "(Free|Net|Open)BSD|DragonFly")
link_directories("${CMAKE_INSTALL_PREFIX}/lib")
endif()
if(CMAKE_SYSTEM_NAME STREQUAL Linux)

View File

@ -37,7 +37,7 @@
#define _GLFW_X11
#endif
#endif
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined( __NetBSD__)
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
#define _GLFW_X11
#endif
#if defined(__APPLE__)
@ -91,7 +91,7 @@
#include "external/glfw/src/osmesa_context.c"
#endif
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined( __NetBSD__)
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined( __NetBSD__) || defined(__DragonFly__)
#include "external/glfw/src/x11_init.c"
#include "external/glfw/src/x11_monitor.c"
#include "external/glfw/src/x11_window.c"