Define SFML_OS_FREEBSD when compiling for kFreeBSD

This commit is contained in:
James Cowgill 2016-08-11 21:46:26 +01:00 committed by Lukas Dürrenberger
parent e2c4bca779
commit fea5d47221

View File

@ -27,7 +27,7 @@ elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
# don't use the OpenGL ES implementation on Linux
set(OPENGL_ES 0)
endif()
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
elseif(CMAKE_SYSTEM_NAME MATCHES "^k?FreeBSD$")
set(SFML_OS_FREEBSD 1)
# don't use the OpenGL ES implementation on FreeBSD
set(OPENGL_ES 0)