File tree 9 files changed +26
-12
lines changed
9 files changed +26
-12
lines changed Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.19 FATAL_ERROR)
1
+ cmake_minimum_required (VERSION 3.14 FATAL_ERROR)
2
2
3
3
project (dragonbox
4
4
VERSION 1.1.3
@@ -21,7 +21,11 @@ endif()
21
21
22
22
set (dragonbox_headers include /dragonbox/dragonbox.h)
23
23
24
- add_library (dragonbox INTERFACE ${dragonbox_headers} )
24
+ if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.19.0" )
25
+ add_library (dragonbox INTERFACE ${dragonbox_headers} )
26
+ else ()
27
+ add_library (dragonbox INTERFACE )
28
+ endif ()
25
29
add_library (dragonbox::dragonbox ALIAS dragonbox)
26
30
27
31
target_include_directories (dragonbox
@@ -33,7 +37,13 @@ target_compile_features(dragonbox INTERFACE cxx_std_17)
33
37
34
38
# ---- Declare library (dragonbox_to_chars) ----
35
39
36
- set (dragonbox_to_chars_headers include /dragonbox/dragonbox_to_chars.h)
40
+ if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.19.0" )
41
+ set (dragonbox_to_chars_headers include /dragonbox/dragonbox_to_chars.h)
42
+ else ()
43
+ set (dragonbox_to_chars_headers
44
+ ${dragonbox_headers}
45
+ include /dragonbox/dragonbox_to_chars.h)
46
+ endif ()
37
47
38
48
set (dragonbox_to_chars_sources source /dragonbox_to_chars.cpp)
39
49
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.19 FATAL_ERROR)
1
+ cmake_minimum_required (VERSION 3.14 FATAL_ERROR)
2
2
3
3
project (grisu_exact LANGUAGES CXX)
4
4
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.19 FATAL_ERROR)
1
+ cmake_minimum_required (VERSION 3.14 FATAL_ERROR)
2
2
3
3
project (ryu_cmake LANGUAGES C)
4
4
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.19 FATAL_ERROR)
1
+ cmake_minimum_required (VERSION 3.14 FATAL_ERROR)
2
2
3
3
project (schubfach LANGUAGES CXX)
4
4
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.19 FATAL_ERROR)
1
+ cmake_minimum_required (VERSION 3.14 FATAL_ERROR)
2
2
3
3
project (benchmark LANGUAGES CXX)
4
4
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.19 FATAL_ERROR)
1
+ cmake_minimum_required (VERSION 3.14 FATAL_ERROR)
2
2
3
3
project (dragonbox_common LANGUAGES CXX)
4
4
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.19 FATAL_ERROR)
1
+ cmake_minimum_required (VERSION 3.14 FATAL_ERROR)
2
2
3
3
project (dragonbox_meta LANGUAGES CXX)
4
4
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.19 FATAL_ERROR)
1
+ cmake_minimum_required (VERSION 3.14 FATAL_ERROR)
2
2
3
3
project (dragonbox_simple LANGUAGES CXX)
4
4
5
5
set (dragonbox_simple_headers include /simple_dragonbox.h)
6
6
7
- add_library (dragonbox_simple INTERFACE ${dragonbox_simple_headers} )
7
+ if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.19.0" )
8
+ add_library (dragonbox_simple INTERFACE ${dragonbox_simple_headers} )
9
+ else ()
10
+ add_library (dragonbox_simple INTERFACE )
11
+ endif ()
8
12
add_library (dragonbox::simple ALIAS dragonbox_simple)
9
13
10
14
target_include_directories (dragonbox_simple
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.19 FATAL_ERROR)
1
+ cmake_minimum_required (VERSION 3.14 FATAL_ERROR)
2
2
3
3
project (dragonboxTests LANGUAGES CXX)
4
4
You can’t perform that action at this time.
0 commit comments