File tree Expand file tree Collapse file tree 4 files changed +19
-7
lines changed Expand file tree Collapse file tree 4 files changed +19
-7
lines changed Original file line number Diff line number Diff line change 1
1
if (${CMAKE_VERSION} VERSION_LESS 3.27.0 )
2
2
cmake_minimum_required (VERSION 3.0 )
3
- else ( )
3
+ elseif ( ${CMAKE_VERSION} VERSION_LESS 3.31.0 )
4
4
cmake_minimum_required (VERSION 3.6 )
5
+ else ()
6
+ cmake_minimum_required (VERSION 3.10 )
5
7
endif ()
6
8
7
9
if (POLICY CMP0063 ) #Honor visibility properties for all target types
Original file line number Diff line number Diff line change 1
- if (NOT CMAKE_VERSION VERSION_LESS 3.3.0 )
1
+ if (NOT CMAKE_VERSION VERSION_LESS 3.3.0 )
2
2
if (${CMAKE_VERSION} VERSION_LESS 3.27.0 )
3
3
cmake_minimum_required (VERSION 3.3 )
4
- else ( )
4
+ elseif ( ${CMAKE_VERSION} VERSION_LESS 3.31.0 )
5
5
cmake_minimum_required (VERSION 3.6 )
6
+ else ()
7
+ cmake_minimum_required (VERSION 3.10 )
6
8
endif ()
7
9
8
10
if (cxx_std_11 IN_LIST CMAKE_CXX_COMPILE_FEATURES )
Original file line number Diff line number Diff line change 1
- if (NOT CMAKE_VERSION VERSION_LESS 3.3.0 )
1
+ if (NOT CMAKE_VERSION VERSION_LESS 3.3.0 )
2
2
if (${CMAKE_VERSION} VERSION_LESS 3.27.0 )
3
3
cmake_minimum_required (VERSION 3.3 )
4
- else ( )
4
+ elseif ( ${CMAKE_VERSION} VERSION_LESS 3.31.0 )
5
5
cmake_minimum_required (VERSION 3.6 )
6
+ else ()
7
+ cmake_minimum_required (VERSION 3.10 )
6
8
endif ()
7
9
8
10
# Unfortunately cxx_std_17 in CMAKE_CXX_COMPILE_FEATURES is not reliable, so check include files
Original file line number Diff line number Diff line change 1
1
if (${CMAKE_VERSION} VERSION_LESS 3.27.0 )
2
2
cmake_minimum_required (VERSION 3.1 )
3
- else ( )
3
+ elseif ( ${CMAKE_VERSION} VERSION_LESS 3.31.0 )
4
4
cmake_minimum_required (VERSION 3.6 )
5
+ else ()
6
+ cmake_minimum_required (VERSION 3.10 )
5
7
endif ()
6
8
7
9
project (PlogTest CXX )
@@ -102,7 +104,11 @@ if(CMAKE_VERSION VERSION_LESS 3.8.0)
102
104
return ()
103
105
endif ()
104
106
105
- cmake_policy (VERSION 3.8 )
107
+ if (${CMAKE_VERSION} VERSION_LESS 3.31.0 )
108
+ cmake_policy (VERSION 3.8 )
109
+ else ()
110
+ cmake_policy (VERSION 3.10 )
111
+ endif ()
106
112
107
113
set (PLOG_CXX_STANDARDS_LIST LIST cxx_std_11 cxx_std_14 cxx_std_17 cxx_std_20 cxx_std_23 )
108
114
You can’t perform that action at this time.
0 commit comments