Skip to content

Commit a8d588e

Browse files
author
Charles PIGNEROL
committed
Version 1.4.1. Porting Qt6. Fix 1.
1 parent 85aee5a commit a8d588e

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

cmake/common_qt.cmake

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,19 @@ elseif (Qt5_DIR OR Qt5_ROOT)
1313
set (QT_5 ON)
1414
set (QT_MAJOR 5)
1515
endif (Qt5_FOUND)
16-
else ( )
17-
message (FATAL_ERROR "Version majeure de Qt non gérée.")
16+
else ( ) # Spack ?
17+
find_package (Qt6 REQUIRED COMPONENTS Core)
18+
if (Qt6_FOUND)
19+
set (QT_6 ON)
20+
set (QT_MAJOR 6)
21+
else (Qt6_FOUND)
22+
find_package (Qt5 REQUIRED COMPONENTS Core)
23+
if (Qt5_FOUND)
24+
set (QT_5 ON)
25+
set (QT_MAJOR 5)
26+
else (Qt5_FOUND)
27+
message (FATAL_ERROR "Version majeure de Qt non gérée.")
28+
endif (Qt5_FOUND)
29+
endif (Qt6_FOUND)
1830
endif ( )
1931

cmake/version.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44

55
set (GUI_TOOLKITS_VARIABLES_MAJOR_VERSION "1")
66
set (GUI_TOOLKITS_VARIABLES_MINOR_VERSION "4")
7-
set (GUI_TOOLKITS_VARIABLES_RELEASE_VERSION "0")
7+
set (GUI_TOOLKITS_VARIABLES_RELEASE_VERSION "1")
88
set (GUI_TOOLKITS_VARIABLES_VERSION ${GUI_TOOLKITS_VARIABLES_MAJOR_VERSION}.${GUI_TOOLKITS_VARIABLES_MINOR_VERSION}.${GUI_TOOLKITS_VARIABLES_RELEASE_VERSION})

versions.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Version 1.4.1 : 13/12/23
2+
===============
3+
4+
cmake/common_qt.cmake : correctif pour environnement spack.
5+
6+
17
Version 1.4.0 : 13/12/23
28
===============
39

0 commit comments

Comments
 (0)