File tree 6 files changed +46
-20
lines changed
6 files changed +46
-20
lines changed Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.9.5 FATAL_ERROR)
2
2
3
3
foreach (p
4
- ## Only policies introduced after the cmake_minimum_required (3.8.2) need
5
- ## to explicitly be set to NEW.
4
+ ## Only policies introduced after the cmake_minimum_required
5
+ ## version need to explicitly be set to NEW.
6
6
CMP0070 #3.10.0 Define ``file(GENERATE)`` behavior for relative paths.
7
7
CMP0071 #3.10.0 Let ``AUTOMOC`` and ``AUTOUIC`` process ``GENERATED`` files.
8
8
)
Original file line number Diff line number Diff line change 1
1
# This is the root ITK CMakeLists file.
2
- cmake_minimum_required (VERSION 2.8.12)
3
- if (COMMAND CMAKE_POLICY)
4
- cmake_policy (SET CMP0003 NEW)
5
- endif ()
2
+ cmake_minimum_required (VERSION 3.9.5 FATAL_ERROR)
3
+ foreach (p
4
+ ## Only policies introduced after the cmake_minimum_required
5
+ ## version need to explicitly be set to NEW.
6
+ CMP0070 #3.10.0 Define ``file(GENERATE)`` behavior for relative paths.
7
+ CMP0071 #3.10.0 Let ``AUTOMOC`` and ``AUTOUIC`` process ``GENERATED`` files.
8
+ )
9
+ if (POLICY ${p} )
10
+ cmake_policy (SET ${p} NEW)
11
+ endif ()
12
+ endforeach ()
6
13
7
14
8
15
# This project is designed to be built outside the Insight source tree.
Original file line number Diff line number Diff line change @@ -52,8 +52,17 @@ int main(void)
52
52
# accomplished with a custom command as a post build step for the
53
53
# compilation of the executable.
54
54
file (WRITE "${test_project_dir} /CMakeLists.txt" "
55
- cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
56
- cmake_policy(VERSION 2.8.12)
55
+ cmake_minimum_required(VERSION 3.9.5 FATAL_ERROR)
56
+ foreach(p
57
+ ## Only policies introduced after the cmake_minimum_required
58
+ ## version need to explicitly be set to NEW.
59
+ CMP0070 #3.10.0 Define ``file(GENERATE)`` behavior for relative paths.
60
+ CMP0071 #3.10.0 Let ``AUTOMOC`` and ``AUTOUIC`` process ``GENERATED`` files.
61
+ )
62
+ if(POLICY ${p} )
63
+ cmake_policy(SET ${p} NEW)
64
+ endif()
65
+ endforeach()
57
66
project(support_private_dynamic_cast CXX)
58
67
add_library(base SHARED \" base.cxx\" )
59
68
set_target_properties(base PROPERTIES CXX_VISIBILITY_PRESET hidden)
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 2.8.12)
1
+ cmake_minimum_required (VERSION 3.9.5 FATAL_ERROR)
2
+ foreach (p
3
+ ## Only policies introduced after the cmake_minimum_required
4
+ ## version need to explicitly be set to NEW.
5
+ CMP0070 #3.10.0 Define ``file(GENERATE)`` behavior for relative paths.
6
+ CMP0071 #3.10.0 Let ``AUTOMOC`` and ``AUTOUIC`` process ``GENERATED`` files.
7
+ )
8
+ if (POLICY ${p} )
9
+ cmake_policy (SET ${p} NEW)
10
+ endif ()
11
+ endforeach ()
12
+
2
13
if (NOT ITK_SOURCE_DIR)
3
14
include (itk-module-init.cmake)
4
15
endif ()
Original file line number Diff line number Diff line change 1
1
# This project builds the test directories from all ITK modules as a separate
2
2
# project outside the main ITK build tree as if they were an application.
3
- cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
4
-
3
+ cmake_minimum_required (VERSION 3.9.5 FATAL_ERROR)
5
4
foreach (p
6
- CMP0025 # CMake 3.0
7
- CMP0042 # CMake 3.0
8
- CMP0054 # CMake 3.1
9
- CMP0056 # CMake 3.2
10
- CMP0058 # CMake 3.3
5
+ ## Only policies introduced after the cmake_minimum_required
6
+ ## version need to explicitly be set to NEW.
7
+ CMP0070 #3.10.0 Define ``file(GENERATE)`` behavior for relative paths.
8
+ CMP0071 #3.10.0 Let ``AUTOMOC`` and ``AUTOUIC`` process ``GENERATED`` files.
11
9
)
12
10
if (POLICY ${p} )
13
11
cmake_policy (SET ${p} NEW)
Original file line number Diff line number Diff line change 16
16
#
17
17
#==========================================================================*/
18
18
19
- cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
19
+ cmake_minimum_required (VERSION 3.9.5 FATAL_ERROR)
20
20
foreach (p
21
- CMP0025 # CMake 3.0
22
- CMP0042 # CMake 3.0
23
- CMP0054 # CMake 3.1
21
+ ## Only policies introduced after the cmake_minimum_required
22
+ ## version need to explicitly be set to NEW.
23
+ CMP0070 #3.10.0 Define ``file(GENERATE)`` behavior for relative paths.
24
+ CMP0071 #3.10.0 Let ``AUTOMOC`` and ``AUTOUIC`` process ``GENERATED`` files.
24
25
)
25
26
if (POLICY ${p} )
26
27
cmake_policy (SET ${p} NEW)
You can’t perform that action at this time.
0 commit comments