Skip to content

Commit b9cb30b

Browse files
committed
Fixed FreeBSD builds (freebsd installs Freetype etc in /usr/local/lib,
but does not search in that directory for libraries).
1 parent 8b4cd23 commit b9cb30b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,11 @@ if(UNIX AND NOT APPLE)
365365
endif()
366366
endif()
367367

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

0 commit comments

Comments
 (0)