summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorM <[email protected]>2018-05-26 20:56:24 +0200
committerAhmad Fatoum <[email protected]>2018-05-26 20:56:24 +0200
commitf89afaa335fef6cb5f40167436c09d5df6dd4126 (patch)
tree9c68c2659d91326c6913a0e8492a2dcf00e92934 /cmake
parent8f4fa5006b5fd4dc25fec3ed5dcbbecd832dd345 (diff)
downloadraylib-f89afaa335fef6cb5f40167436c09d5df6dd4126.tar.gz
raylib-f89afaa335fef6cb5f40167436c09d5df6dd4126.zip
CMake: Fix cannot find -lX11 (#552)
Temporary measure to fix a breakage on FreeBSD. See #551 for more details.
Diffstat (limited to 'cmake')
-rwxr-xr-xcmake/utils.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/utils.cmake b/cmake/utils.cmake
index fc75ef4f..9a2b410f 100755
--- a/cmake/utils.cmake
+++ b/cmake/utils.cmake
@@ -53,6 +53,11 @@ if(${PLATFORM} MATCHES "Desktop")
endif()
endif()
+# Ugly crutch. Temporary workaround for #551
+if("${CMAKE_SYSTEM_NAME}" MATCHES "(Free|Net|Open)BSD")
+ link_directories("/usr/local/lib")
+endif()
+
if(CMAKE_SYSTEM_NAME STREQUAL Linux)
set(LINUX TRUE)
set(LIBS_PRIVATE dl ${LIBS_PRIVATE})