Fixed FreeBSD builds (freebsd installs Freetype etc in /usr/local/lib,

but does not search in that directory for libraries).
This commit is contained in:
hiker 2016-05-31 13:43:07 +10:00
parent 70c0038b93
commit 0f79dcc238

View File

@ -365,6 +365,11 @@ if(UNIX AND NOT APPLE)
endif()
endif()
# FreeBSD does not search in /usr/local/lib, but at least Freetype is installed there :(
if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L/usr/local/lib")
endif()
if(APPLE)
# In theory it would be cleaner to let CMake detect the right dependencies. In practice, this means that if a OSX user has
# unix-style installs of Vorbis/Ogg/OpenAL/etc. they will be picked up over our frameworks. This is blocking when I make releases :