summarylogtreecommitdiffstats
path: root/glfw.patch
blob: 5844c5414e49a421be1c31cc6f20461f6597a5a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- LuxCore-luxcorerender_v2.0/samples/luxcoreui/CMakeLists.txt	2018-05-06 11:04:25.000000000 +0200
+++ CMakeLists.txt	2018-05-13 12:50:20.599796898 +0200
@@ -22,7 +22,10 @@
 #
 #############################################################################
 
-add_subdirectory(deps/glfw-3.1.1)
+find_package(glfw3 REQUIRED)
+IF(NOT ${GLFW3_FOUND})
+	add_subdirectory(deps/glfw-3.1.1)
+ENDIF()
 include_directories(deps/glfw-3.1.1/include)
 include_directories(deps/nfd/include)