File: 0002-Fix-directive-nesting-in-CMakeLists.txt.patch

package info (click to toggle)
seadrive-gui 3.0.18%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,388 kB
  • sloc: cpp: 24,888; ansic: 280; sh: 13; makefile: 11; python: 5
file content (27 lines) | stat: -rw-r--r-- 696 bytes parent folder | download
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
From: Moritz Schlarb <schlarbm@uni-mainz.de>
Date: Thu, 6 Mar 2025 10:57:43 +0100
Subject: Fix directive nesting in CMakeLists.txt

---
 CMakeLists.txt | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 38cd707..ad61890 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -351,13 +351,7 @@ INCLUDE_DIRECTORIES(
   )
 
 FOREACH(USE_QT_LIBRARY ${USE_QT_LIBRARIES})
-INCLUDE_DIRECTORIES(
-IF(QT_VERSION_MAJOR EQUAL 6)
-    ${Qt6${USE_QT_LIBRARY}_INCLUDE_DIRS}
-ELSE()
-    ${Qt5${USE_QT_LIBRARY}_INCLUDE_DIRS}
-ENDIF()
-)
+INCLUDE_DIRECTORIES(${Qt${QT_VERSION_MAJOR}${USE_QT_LIBRARY}_INCLUDE_DIRS})
 ENDFOREACH()
 
 INCLUDE_DIRECTORIES(