Parcourir la source

CMake: Fix cannot find -lX11 (#552)

Temporary measure to fix a breakage on FreeBSD.
See #551 for more details.
pull/558/head
M il y a 6 ans
committed by Ahmad Fatoum
Parent
révision
f89afaa335
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. +5
    -0
      cmake/utils.cmake

+ 5
- 0
cmake/utils.cmake Voir le fichier

@ -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})

Chargement…
Annuler
Enregistrer