Преглед изворни кода

Merge pull request #618 from Heather/patch-2

Add /usr/local/include for FreeBSD (QtOpengl)
Jean-Christophe Fillion-Robin пре 9 година
родитељ
комит
27b7322411
1 измењених фајлова са 7 додато и 0 уклоњено
  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
 #