Browse Source

Add /usr/local/include for FreeBSD (QtOpengl)

fix alike that in other project: https://github.com/dotnet/coreclr/pull/550/files
fixes building CTKWidgets on FreeBSD 10
Heather 9 years ago
parent
commit
7a841bc44e
1 changed files with 7 additions and 0 deletions
  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
 #