Explorar o código

Merge pull request #618 from Heather/patch-2

Add /usr/local/include for FreeBSD (QtOpengl)
Jean-Christophe Fillion-Robin %!s(int64=9) %!d(string=hai) anos
pai
achega
27b7322411
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      Libs/Widgets/CMakeLists.txt

+ 7 - 0
Libs/Widgets/CMakeLists.txt

@@ -6,6 +6,13 @@ project(CTKWidgets)
 
 set(KIT_export_directive "CTK_WIDGETS_EXPORT")
 
+# add local include directory for FreeBSD
+# (QtOpengl can't find GL/gl.h)
+# actual bug: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195105
+if(CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
+  include_directories("/usr/local/include")
+endif()
+
 #
 # Add the libraries QtTesting
 #