summarylogtreecommitdiffstats
path: root/01-glfw.patch
blob: 29c1e0fef7af4c4bc830ff11fc3538e2536e59db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/samples/luxcoreui/CMakeLists.txt b/samples/luxcoreui/CMakeLists.txt
index 33b50b3d0..ba1982a42 100644
--- a/samples/luxcoreui/CMakeLists.txt
+++ b/samples/luxcoreui/CMakeLists.txt
@@ -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)