File tree Expand file tree Collapse file tree 5 files changed +7
-19
lines changed Expand file tree Collapse file tree 5 files changed +7
-19
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
3
else ()
4
- cmake_minimum_required (VERSION 3.10 )
4
+ cmake_minimum_required (VERSION 3.27 )
5
5
endif ()
6
6
7
7
project (plog VERSION 1.1.10 LANGUAGES CXX)
@@ -16,7 +16,7 @@ endif()
16
16
# options
17
17
option (PLOG_BUILD_SAMPLES "Build ${PROJECT_NAME} samples" ${IS_TOPLEVEL_PROJECT} )
18
18
option (PLOG_INSTALL "Generate ${PROJECT_NAME} install target" ${IS_TOPLEVEL_PROJECT} )
19
- option (PLOG_BUILD_TESTS "Build tests" OFF )
19
+ option (PLOG_BUILD_TESTS "Build tests" ON )
20
20
21
21
# make sure install paths work on all platforms
22
22
include (GNUInstallDirs)
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
- elseif (${CMAKE_VERSION} VERSION_LESS 3.31.0)
4
- cmake_minimum_required (VERSION 3.6)
5
3
else ()
6
- cmake_minimum_required (VERSION 3.10 )
4
+ cmake_minimum_required (VERSION 3.27 )
7
5
endif ()
8
6
9
7
if (POLICY CMP0063) #Honor visibility properties for all target types
Original file line number Diff line number Diff line change 1
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
- elseif (${CMAKE_VERSION} VERSION_LESS 3.31.0)
5
- cmake_minimum_required (VERSION 3.6)
6
4
else ()
7
- cmake_minimum_required (VERSION 3.10 )
5
+ cmake_minimum_required (VERSION 3.27 )
8
6
endif ()
9
7
10
8
if (cxx_std_11 IN_LIST CMAKE_CXX_COMPILE_FEATURES)
Original file line number Diff line number Diff line change 1
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
- elseif (${CMAKE_VERSION} VERSION_LESS 3.31.0)
5
- cmake_minimum_required (VERSION 3.6)
6
4
else ()
7
- cmake_minimum_required (VERSION 3.10 )
5
+ cmake_minimum_required (VERSION 3.27 )
8
6
endif ()
9
7
10
8
# 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
- elseif (${CMAKE_VERSION} VERSION_LESS 3.31.0)
4
- cmake_minimum_required (VERSION 3.6)
5
3
else ()
6
- cmake_minimum_required (VERSION 3.10 )
4
+ cmake_minimum_required (VERSION 3.27 )
7
5
endif ()
8
6
9
7
project (PlogTest CXX)
@@ -103,12 +101,8 @@ plog_add_test_wchar(${PROJECT_NAME}_wchar)
103
101
104
102
if (CMAKE_VERSION VERSION_LESS 3.8.0)
105
103
return ()
106
- endif ()
107
-
108
- if (${CMAKE_VERSION} VERSION_LESS 3.31.0)
104
+ elseif (${CMAKE_VERSION} VERSION_LESS 3.27.0)
109
105
cmake_policy (VERSION 3.8)
110
- else ()
111
- cmake_policy (VERSION 3.10)
112
106
endif ()
113
107
114
108
set (PLOG_CXX_STANDARDS_LIST LIST cxx_std_11 cxx_std_14 cxx_std_17 cxx_std_20 cxx_std_23)
You can’t perform that action at this time.
0 commit comments