summarylogtreecommitdiffstats
path: root/0001-glfw.patch
blob: e9255cf7f8f8c416f42ccbcaaf1141069972ca13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From cac71451ef9ce473d8cd4ee86f6da1f2143efe96 Mon Sep 17 00:00:00 2001
From: howetuft <howetuft@gmail.com>
Date: Sat, 21 May 2022 18:16:28 +0200
Subject: [PATCH 01/14] glfw

---
 samples/luxcoreui/CMakeLists.txt | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/samples/luxcoreui/CMakeLists.txt b/samples/luxcoreui/CMakeLists.txt
index 8b74e0704..d2e823874 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)
 
-- 
2.41.0