diff --git a/CMake/ListToString.cmake b/CMake/ListToString.cmake index 59f7b3c313724fc4aa3afa8e20822767bb4c5a34..ed8b796de818e1fb67b641721974f7f4ce03b6e0 100644 --- a/CMake/ListToString.cmake +++ b/CMake/ListToString.cmake @@ -18,7 +18,7 @@ # ################################################################################ -cmake_minimum_required(VERSION 2.8.9) +cmake_minimum_required(VERSION 3.5) function(list_to_string separator input_list output_string_var) set(_string "") diff --git a/CMake/SlicerCPack.cmake b/CMake/SlicerCPack.cmake index 5f0c59daf062fd45aab2fc6a0d89b62f6c69e69e..9b5da0a0481b690216851124cabaebc4163d9059 100644 --- a/CMake/SlicerCPack.cmake +++ b/CMake/SlicerCPack.cmake @@ -71,29 +71,9 @@ if(NOT APPLE) if(NOT DEFINED CMAKE_INSTALL_OPENMP_LIBRARIES) set(CMAKE_INSTALL_OPENMP_LIBRARIES ON) endif() - if(MSVC AND CMAKE_VERSION VERSION_LESS "3.1" AND CMAKE_INSTALL_OPENMP_LIBRARIES) - message(WARNING "Skipping installation of OpenMP libraries. " - "Upgrade from CMake ${CMAKE_VERSION} to CMake >= 3.1 to install them.") - endif() + set(CMAKE_INSTALL_SYSTEM_RUNTIME_COMPONENT "RuntimeLibraries") include(InstallRequiredSystemLibraries) - # XXX: Remove this once CMake minimum version has been updated. - # See Slicer issue #3972 and CMake issue #15428 - if(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS) - if(NOT CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP) - if(NOT CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION) - if(WIN32) - set(CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION bin) - else() - set(CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION lib) - endif() - endif() - install(PROGRAMS ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS} - DESTINATION ${CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION} - COMPONENT RuntimeLibraries) - endif() - endif() - include(${Slicer_CMAKE_DIR}/SlicerBlockInstallCMakeProjects.cmake) else() diff --git a/CMake/SlicerCPackBundleFixup.cmake.in b/CMake/SlicerCPackBundleFixup.cmake.in index 41c0458b083d1afa4de79648c0ab3444acd48b88..80546cf8dde130a5df7c7669604949fd702ab1ad 100644 --- a/CMake/SlicerCPackBundleFixup.cmake.in +++ b/CMake/SlicerCPackBundleFixup.cmake.in @@ -2,16 +2,6 @@ include(@CMAKE_SOURCE_DIR@/CMake/BundleUtilitiesWithRPath.cmake) #include(BundleUtilities) -# -# Avoid following symlinks encountered during FILE GLOB_RECURSE calls: -# -if(COMMAND CMAKE_POLICY) - cmake_policy(SET CMP0009 NEW) - if(POLICY CMP0011) - cmake_policy(SET CMP0011 NEW) - endif() -endif() - #----------------------------------------------------------------------------- set(PYTHON_STDLIB_SUBDIR "@PYTHON_STDLIB_SUBDIR@") set(PYTHON_SITE_PACKAGES_SUBDIR "@PYTHON_SITE_PACKAGES_SUBDIR@") diff --git a/CMake/SlicerCPackBundleVerify.cmake b/CMake/SlicerCPackBundleVerify.cmake index 7833e89739291a2df7703f4d6c8f6d3f00037af3..b7d5b94b00872869fc651f58af8b74449edbbe8c 100644 --- a/CMake/SlicerCPackBundleVerify.cmake +++ b/CMake/SlicerCPackBundleVerify.cmake @@ -1,23 +1,6 @@ -# -# Make sure this CMake has BundleUtilities.cmake: -# -if(NOT EXISTS "${CMAKE_ROOT}/Modules/BundleUtilities.cmake") - message(FATAL_ERROR "error: BundleUtilities.cmake not found. Use CMake 2.8.3 or later.") -endif() include(BundleUtilities) -# -# Avoid following symlinks encountered during FILE GLOB_RECURSE calls: -# -if(COMMAND CMAKE_POLICY) - cmake_policy(SET CMP0009 NEW) - if(POLICY CMP0011) - cmake_policy(SET CMP0011 NEW) - endif() -endif() - - # Sanity checks set(expected_existing_vars Slicer_INSTALL_DIR Slicer_MAIN_PROJECT_APPLICATION_NAME) foreach(var ${expected_existing_vars}) diff --git a/CMake/SlicerConfig.cmake.in b/CMake/SlicerConfig.cmake.in index 4bedb970e6a1697c8f3e040e8ff5571e9a9536ea..2a8e64ee16cddfe6a07e5e9e1c9549eb0a881cf0 100644 --- a/CMake/SlicerConfig.cmake.in +++ b/CMake/SlicerConfig.cmake.in @@ -52,6 +52,8 @@ # ConfigurePrerequisites | Slicer_USE_CONFIGUREPREREQUISITES # -------------------------------------------------------------------------- +cmake_minimum_required(VERSION 3.5) + foreach(component NoExtensionSupport ConfigurePrerequisites) string(TOUPPER ${component} _COMPONENT) set(Slicer_USE_${_COMPONENT} 0) diff --git a/CMake/SlicerDashboardScript.TEMPLATE.cmake b/CMake/SlicerDashboardScript.TEMPLATE.cmake index 283fc2cdb5228b9a948b420a8d5c5ff76cc84b00..648f0c61b38ba73bb9415b2d26c5e889f78b5372 100644 --- a/CMake/SlicerDashboardScript.TEMPLATE.cmake +++ b/CMake/SlicerDashboardScript.TEMPLATE.cmake @@ -12,7 +12,7 @@ # 'glxinfo | grep OpenGL' to obtain GPU details. #################################################################################### -cmake_minimum_required(VERSION 2.8.9) +cmake_minimum_required(VERSION 3.5) # # For additional information, see http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/Tutorials/DashboardSetup diff --git a/CMake/SlicerExtensionCPack.cmake b/CMake/SlicerExtensionCPack.cmake index 83c110257a13a184f06fa193f98b78d5cea7e151..5f56d3b50419f70281b71b89199007548c5531c8 100644 --- a/CMake/SlicerExtensionCPack.cmake +++ b/CMake/SlicerExtensionCPack.cmake @@ -187,7 +187,7 @@ if(APPLE) # for SuperBuild extensions. file(WRITE ${slicer_extension_cpack_bundle_fixup_directory}/CMakeLists.txt - "cmake_minimum_required(VERSION 3.0) + "cmake_minimum_required(VERSION 3.3) install(SCRIPT \"${slicer_extension_cpack_bundle_fixup_directory}/SlicerExtensionCPackBundleFixup.cmake\")") set(source_dir "${slicer_extension_cpack_bundle_fixup_directory}") set(build_dir "${slicer_extension_cpack_bundle_fixup_directory}-binary") diff --git a/CMake/SlicerExtensionCPackBundleFixup.cmake.in b/CMake/SlicerExtensionCPackBundleFixup.cmake.in index b6741d38c3dd3149c1e7245fe5c7ffdbe4f149a0..78355b431e62c44242d2c0b8af7e8d726025fdbb 100644 --- a/CMake/SlicerExtensionCPackBundleFixup.cmake.in +++ b/CMake/SlicerExtensionCPackBundleFixup.cmake.in @@ -10,16 +10,6 @@ if(NOT EXISTS "${CMAKE_INSTALL_PREFIX}") message(FATAL_ERROR "CMAKE_INSTALL_PREFIX is set to a nonexistent directory :(") endif() -# -# Avoid following symlinks encountered during FILE GLOB_RECURSE calls: -# -if(COMMAND CMAKE_POLICY) - cmake_policy(SET CMP0009 NEW) - if(POLICY CMP0011) - cmake_policy(SET CMP0011 NEW) - endif() -endif() - #----------------------------------------------------------------------------- # gp_log_message - Convenient function allowing to both display and log a message. # Log file: $ENV{DESTDIR}/../complete-bundles-log.txt diff --git a/CMake/UseSlicer.cmake.in b/CMake/UseSlicer.cmake.in index 11799a21b845b0dffbfd59de537542143aa7ab9a..5ac2b177454ad8da820d1015c884ef91e9574d71 100644 --- a/CMake/UseSlicer.cmake.in +++ b/CMake/UseSlicer.cmake.in @@ -107,9 +107,6 @@ endif() if(NOT DEFINED ${EXTENSION_NAME}_SOURCE_DIR AND NOT DEFINED ${EXTENSION_NAME}_BINARY_DIR AND NOT Slicer_DONT_USE_EXTENSION) - if(POLICY CMP0048) - cmake_policy(SET CMP0048 NEW) - endif() project(${EXTENSION_NAME}) endif() diff --git a/CMake/UseSlicerMacros.cmake b/CMake/UseSlicerMacros.cmake index 15f026b1418158b2959c10b494ee51b8147cf172..0848be7fb421c15edc34f4277ff9c2e77b286310 100644 --- a/CMake/UseSlicerMacros.cmake +++ b/CMake/UseSlicerMacros.cmake @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8.4) +cmake_minimum_required(VERSION 3.5) # Given a variable name, this function will display messages indicating what the current # value of the variable. diff --git a/CMakeLists.txt b/CMakeLists.txt index 68fe0d72bf71ca6df643d8ccaf48527aef58c5b5..4289d61c837c3c81f226cc1195d7ffb49ae28f21 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,17 +1,6 @@ -cmake_minimum_required(VERSION 2.8.9) -if(POLICY CMP0017) - cmake_policy(SET CMP0017 OLD) -endif() -foreach(p - CMP0048 # CMake 3.0 - CMP0054 # CMake 3.1 - CMP0020 # CMake 2.8.11 - ) - if(POLICY ${p}) - cmake_policy(SET ${p} NEW) - endif() -endforeach() +cmake_minimum_required(VERSION 3.5) +cmake_policy(SET CMP0017 OLD) #----------------------------------------------------------------------------- set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake" ${CMAKE_MODULE_PATH}) diff --git a/Extensions/CMake/CMakeLists.txt b/Extensions/CMake/CMakeLists.txt index 14fb0073b865f69a25b875fc851c47b9eace4db0..5056d10aa3dea37f182e4dbe28c30422527e7989 100644 --- a/Extensions/CMake/CMakeLists.txt +++ b/Extensions/CMake/CMakeLists.txt @@ -1,6 +1,6 @@ #----------------------------------------------------------------------------- -cmake_minimum_required(VERSION 2.8.4) +cmake_minimum_required(VERSION 3.5) #----------------------------------------------------------------------------- if(Slicer_SOURCE_DIR) @@ -14,17 +14,8 @@ if(APPLE) include(${CMAKE_CURRENT_SOURCE_DIR}/../../CMake/SlicerBlockSetCMakeOSXVariables.cmake) endif() -if(POLICY CMP0048) - cmake_policy(SET CMP0048 NEW) # CMake 3.0.0 -endif() project(SlicerExtensions) - -#----------------------------------------------------------------------------- -# See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details -#----------------------------------------------------------------------------- -if(POLICY CMP0017) - cmake_policy(SET CMP0017 OLD) -endif() +cmake_policy(SET CMP0017 OLD) #----------------------------------------------------------------------------- set(_url $ENV{MIDAS_PACKAGE_URL}) diff --git a/Extensions/CMake/SlicerExtensionsDashboardScript.TEMPLATE.cmake b/Extensions/CMake/SlicerExtensionsDashboardScript.TEMPLATE.cmake index f6eabb985b2d723bc985b4eb8063f8d0de57f3c5..dfc2c009f9d23d578d3fbe8eb6588b89946c6652 100644 --- a/Extensions/CMake/SlicerExtensionsDashboardScript.TEMPLATE.cmake +++ b/Extensions/CMake/SlicerExtensionsDashboardScript.TEMPLATE.cmake @@ -12,7 +12,7 @@ # 'glxinfo | grep OpenGL' to obtain GPU details. #################################################################################### -cmake_minimum_required(VERSION 2.8.7) +cmake_minimum_required(VERSION 3.5) # # For additional information, see http://http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/Tutorials/DashboardSetup diff --git a/Extensions/CMake/SlicerFunctionExtractExtensionDescription.cmake b/Extensions/CMake/SlicerFunctionExtractExtensionDescription.cmake index 7e92ffd782da4bbd6e45234d3ff956412e8ba06d..72461e1c3e0552e77f6a8129f8ed94b356dd17df 100644 --- a/Extensions/CMake/SlicerFunctionExtractExtensionDescription.cmake +++ b/Extensions/CMake/SlicerFunctionExtractExtensionDescription.cmake @@ -24,15 +24,6 @@ if(NOT DEFINED Slicer_EXTENSIONS_CMAKE_DIR) set(Slicer_EXTENSIONS_CMAKE_DIR ${CMAKE_CURRENT_LIST_DIR}) endif() -foreach(p - CMP0054 # CMake 3.1 - CMP0064 # CMake 3.4 - ) - if(POLICY ${p}) - cmake_policy(SET ${p} NEW) - endif() -endforeach() - # # slicerFunctionExtractExtensionDescription(EXTENSION_FILE <file> VAR_PREFIX <var-prefix>) # is used to extract information associated with a given extension <file>. diff --git a/Extensions/CMake/Testing/CheckGeneratedDescriptionFiles.cmake b/Extensions/CMake/Testing/CheckGeneratedDescriptionFiles.cmake index 9c2c7ddbeac198cbf0498dc2b0d7e25ac88cf59e..91cf6394db5e44a621a26bfb6e225a2e4f29b6fe 100644 --- a/Extensions/CMake/Testing/CheckGeneratedDescriptionFiles.cmake +++ b/Extensions/CMake/Testing/CheckGeneratedDescriptionFiles.cmake @@ -3,7 +3,7 @@ # Check that TestExtC generated description file is valid. # -cmake_minimum_required(VERSION 2.8.9) +cmake_minimum_required(VERSION 3.5) # Sanity checks set(expected_existing_vars diff --git a/Extensions/Testing/CLIExtensionTemplate/CMakeLists.txt b/Extensions/Testing/CLIExtensionTemplate/CMakeLists.txt index a60d67153f0781cc2d60fcc759d64171586c5ddf..f4f134cbe0af45546fe4432af1cf42d1ec912fdc 100644 --- a/Extensions/Testing/CLIExtensionTemplate/CMakeLists.txt +++ b/Extensions/Testing/CLIExtensionTemplate/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8.9) +cmake_minimum_required(VERSION 3.5) project(CLIExtensionTemplate) diff --git a/Extensions/Testing/EditorExtensionTemplate/CMakeLists.txt b/Extensions/Testing/EditorExtensionTemplate/CMakeLists.txt index fa1f39766bfe9bda2e16978ce541defe75b625e6..e8650e7bfd5dcab0ccf7e945098de197d8c36d92 100644 --- a/Extensions/Testing/EditorExtensionTemplate/CMakeLists.txt +++ b/Extensions/Testing/EditorExtensionTemplate/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8.9) +cmake_minimum_required(VERSION 3.5) project(EditorExtensionTemplate) diff --git a/Extensions/Testing/LoadableExtensionTemplate/CMakeLists.txt b/Extensions/Testing/LoadableExtensionTemplate/CMakeLists.txt index c2ecb043c7a24d5f95c91bdec21ad28611fb809a..254b7d386ef25e09cf80d8dcc877fef923958037 100644 --- a/Extensions/Testing/LoadableExtensionTemplate/CMakeLists.txt +++ b/Extensions/Testing/LoadableExtensionTemplate/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8.9) +cmake_minimum_required(VERSION 3.5) project(LoadableExtensionTemplate) diff --git a/Extensions/Testing/ScriptedLoadableExtensionTemplate/CMakeLists.txt b/Extensions/Testing/ScriptedLoadableExtensionTemplate/CMakeLists.txt index 5c086a26d2c20b5cb189730a982fa20a6ab920f0..0c3b1655d0225fd0f0140d8b1ccd1d0aace0aaed 100644 --- a/Extensions/Testing/ScriptedLoadableExtensionTemplate/CMakeLists.txt +++ b/Extensions/Testing/ScriptedLoadableExtensionTemplate/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8.9) +cmake_minimum_required(VERSION 3.5) project(ScriptedLoadableExtensionTemplate) diff --git a/Extensions/Testing/ScriptedSegmentEditorEffectExtensionTemplate/CMakeLists.txt b/Extensions/Testing/ScriptedSegmentEditorEffectExtensionTemplate/CMakeLists.txt index b36b7c508001f106c8ebdb96d804a0ae05f88857..3654bdc3125bd4bc824664082491fa03ca36348a 100644 --- a/Extensions/Testing/ScriptedSegmentEditorEffectExtensionTemplate/CMakeLists.txt +++ b/Extensions/Testing/ScriptedSegmentEditorEffectExtensionTemplate/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8.9) +cmake_minimum_required(VERSION 3.5) project(ScriptedSegmentEditorEffectExtensionTemplate) diff --git a/Extensions/Testing/SuperBuildExtensionTemplate/CMakeLists.txt b/Extensions/Testing/SuperBuildExtensionTemplate/CMakeLists.txt index ce2e4bc74a6f7d696993063476dd8d765262c440..07d28f1335938e3a1bdea39f774668c162d41ec1 100644 --- a/Extensions/Testing/SuperBuildExtensionTemplate/CMakeLists.txt +++ b/Extensions/Testing/SuperBuildExtensionTemplate/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.1) +cmake_minimum_required(VERSION 3.5) project(SuperBuildExtensionTemplate) diff --git a/Libs/FreeSurfer/CMakeLists.txt b/Libs/FreeSurfer/CMakeLists.txt index 5b47df21d8232b16375f5155cbacb5e50a7ad8f0..289d1229d43285e8ce0aa8544f54fd269fd301f9 100644 --- a/Libs/FreeSurfer/CMakeLists.txt +++ b/Libs/FreeSurfer/CMakeLists.txt @@ -1,7 +1,7 @@ project(FreeSurfer) #----------------------------------------------------------------------------- -cmake_minimum_required(VERSION 2.8.4) +cmake_minimum_required(VERSION 3.5) #----------------------------------------------------------------------------- # -------------------------------------------------------------------------- diff --git a/Libs/ITKFactoryRegistration/CMakeLists.txt b/Libs/ITKFactoryRegistration/CMakeLists.txt index 72d8d2ff29d5a8ecafc740187aa135de47ba4fe6..641961b40fc4325cbccbd33819551c20d239479a 100644 --- a/Libs/ITKFactoryRegistration/CMakeLists.txt +++ b/Libs/ITKFactoryRegistration/CMakeLists.txt @@ -1,6 +1,6 @@ project(ITKFactoryRegistration) -cmake_minimum_required(VERSION 2.8.4) +cmake_minimum_required(VERSION 3.5) # -------------------------------------------------------------------------- # Dependencies diff --git a/Libs/MRML/CLI/CMakeLists.txt b/Libs/MRML/CLI/CMakeLists.txt index 1ca0e8b920b420c561761de26d8cf98edb133a9d..3a12e70d2589346a7fc5613309a1b924d483c6b6 100644 --- a/Libs/MRML/CLI/CMakeLists.txt +++ b/Libs/MRML/CLI/CMakeLists.txt @@ -1,7 +1,7 @@ project(MRMLCLI) #----------------------------------------------------------------------------- -cmake_minimum_required(VERSION 2.8.4) +cmake_minimum_required(VERSION 3.5) #----------------------------------------------------------------------------- # -------------------------------------------------------------------------- diff --git a/Libs/MRML/Core/CMakeLists.txt b/Libs/MRML/Core/CMakeLists.txt index a728338996c50ac4c8f6d7898e5b302f3ceff119..536e0bf3abbbe4ab738cedff776ed1bee2ed234d 100644 --- a/Libs/MRML/Core/CMakeLists.txt +++ b/Libs/MRML/Core/CMakeLists.txt @@ -1,7 +1,7 @@ project(MRMLCore) #----------------------------------------------------------------------------- -cmake_minimum_required(VERSION 2.8.4) +cmake_minimum_required(VERSION 3.5) #----------------------------------------------------------------------------- # -------------------------------------------------------------------------- diff --git a/Libs/MRML/DisplayableManager/CMakeLists.txt b/Libs/MRML/DisplayableManager/CMakeLists.txt index 6ea419ef7e73b4596fc146cb8d50bdabfae6484a..f4d2f7fa01fb4dedc5071a68e6d4229a10207108 100644 --- a/Libs/MRML/DisplayableManager/CMakeLists.txt +++ b/Libs/MRML/DisplayableManager/CMakeLists.txt @@ -1,7 +1,7 @@ project(MRMLDisplayableManager) #----------------------------------------------------------------------------- -cmake_minimum_required(VERSION 2.8.4) +cmake_minimum_required(VERSION 3.5) #----------------------------------------------------------------------------- # -------------------------------------------------------------------------- diff --git a/Libs/MRML/IDImageIO/CMakeLists.txt b/Libs/MRML/IDImageIO/CMakeLists.txt index 35f2a8bf12528e17fb79159c357b9e20564112ce..12d96cf01bcd0ce57a251c41d74abf9a62431128 100644 --- a/Libs/MRML/IDImageIO/CMakeLists.txt +++ b/Libs/MRML/IDImageIO/CMakeLists.txt @@ -1,7 +1,7 @@ project(MRMLIDImageIO) #----------------------------------------------------------------------------- -cmake_minimum_required(VERSION 2.8.4) +cmake_minimum_required(VERSION 3.5) #----------------------------------------------------------------------------- diff --git a/Libs/MRML/Logic/CMakeLists.txt b/Libs/MRML/Logic/CMakeLists.txt index 05628fdd9a859f28beb6931d978b14f47857fb45..4cde7ce8acee664fd5de83b2474bf469fdaaee2b 100644 --- a/Libs/MRML/Logic/CMakeLists.txt +++ b/Libs/MRML/Logic/CMakeLists.txt @@ -1,7 +1,7 @@ project(MRMLLogic) #----------------------------------------------------------------------------- -cmake_minimum_required(VERSION 2.8.4) +cmake_minimum_required(VERSION 3.5) #----------------------------------------------------------------------------- # -------------------------------------------------------------------------- diff --git a/Libs/MRML/Widgets/CMakeLists.txt b/Libs/MRML/Widgets/CMakeLists.txt index b0cfb87a1120f81ea2e06674295c842586ff272f..27e60153f043f1281b20932cbb4306dab7643573 100644 --- a/Libs/MRML/Widgets/CMakeLists.txt +++ b/Libs/MRML/Widgets/CMakeLists.txt @@ -2,7 +2,7 @@ project(qMRMLWidgets) #----------------------------------------------------------------------------- -cmake_minimum_required(VERSION 2.8.4) +cmake_minimum_required(VERSION 3.5) #----------------------------------------------------------------------------- # -------------------------------------------------------------------------- diff --git a/Libs/RemoteIO/CMakeLists.txt b/Libs/RemoteIO/CMakeLists.txt index 441414f99504713dc30a8e05abe91d9406fc79e8..5962fba26486786d225901002619a6261960b78b 100644 --- a/Libs/RemoteIO/CMakeLists.txt +++ b/Libs/RemoteIO/CMakeLists.txt @@ -1,7 +1,7 @@ project(RemoteIO) #----------------------------------------------------------------------------- -cmake_minimum_required(VERSION 2.8.4) +cmake_minimum_required(VERSION 3.5) #----------------------------------------------------------------------------- # -------------------------------------------------------------------------- diff --git a/Libs/vtkAddon/CMakeLists.txt b/Libs/vtkAddon/CMakeLists.txt index c08846dd891ca5cd912bbb0eb22aa3dddce74fc3..0e995c25f328593c483e6fc5aea09227f110a5bf 100644 --- a/Libs/vtkAddon/CMakeLists.txt +++ b/Libs/vtkAddon/CMakeLists.txt @@ -1,7 +1,7 @@ project(vtkAddon) #----------------------------------------------------------------------------- -cmake_minimum_required(VERSION 2.8.4) +cmake_minimum_required(VERSION 3.5) #----------------------------------------------------------------------------- # -------------------------------------------------------------------------- diff --git a/Libs/vtkITK/CMakeLists.txt b/Libs/vtkITK/CMakeLists.txt index 5cac12b7138f6eacff2958232f93bb7bbdeba77f..1954cd79a90358d08c3a8903c10c805b48faae17 100644 --- a/Libs/vtkITK/CMakeLists.txt +++ b/Libs/vtkITK/CMakeLists.txt @@ -1,7 +1,7 @@ project(vtkITK) #----------------------------------------------------------------------------- -cmake_minimum_required(VERSION 2.8.4) +cmake_minimum_required(VERSION 3.5) #----------------------------------------------------------------------------- # -------------------------------------------------------------------------- diff --git a/Libs/vtkSegmentationCore/CMakeLists.txt b/Libs/vtkSegmentationCore/CMakeLists.txt index b8c4793e10e0dd55e70ca9525fefe2d1f804a291..bef10e771ca83aaa3af3c1948dac8d84be4f140a 100644 --- a/Libs/vtkSegmentationCore/CMakeLists.txt +++ b/Libs/vtkSegmentationCore/CMakeLists.txt @@ -1,7 +1,7 @@ project(vtkSegmentationCore) #----------------------------------------------------------------------------- -cmake_minimum_required(VERSION 2.8.4) +cmake_minimum_required(VERSION 3.5) #----------------------------------------------------------------------------- # -------------------------------------------------------------------------- diff --git a/Libs/vtkTeem/CMakeLists.txt b/Libs/vtkTeem/CMakeLists.txt index f1eb3da0987a4ed761cdbc64edef5e595892a7f5..4737583e91b53d58f2385a3d6605760afc5d61d1 100644 --- a/Libs/vtkTeem/CMakeLists.txt +++ b/Libs/vtkTeem/CMakeLists.txt @@ -1,7 +1,7 @@ project(vtkTeem) #----------------------------------------------------------------------------- -cmake_minimum_required(VERSION 2.8.4) +cmake_minimum_required(VERSION 3.5) #----------------------------------------------------------------------------- # -------------------------------------------------------------------------- diff --git a/Utilities/Templates/Extensions/Default/CMakeLists.txt b/Utilities/Templates/Extensions/Default/CMakeLists.txt index 023a31a05b1b4a1eeb49ce140fb85888deb3ac29..7381c7cc9a2d36b4f624f2d8b1d20f2ad8c4ca64 100644 --- a/Utilities/Templates/Extensions/Default/CMakeLists.txt +++ b/Utilities/Templates/Extensions/Default/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8.9) +cmake_minimum_required(VERSION 3.5) project(TemplateKey) diff --git a/Utilities/Templates/Extensions/SuperBuild/CMakeLists.txt b/Utilities/Templates/Extensions/SuperBuild/CMakeLists.txt index 8fc78b57b561d6e00db041ebf71ba19c30d71ba4..04b95dc51bf3a24d02cd4867e4459765c6ea1646 100644 --- a/Utilities/Templates/Extensions/SuperBuild/CMakeLists.txt +++ b/Utilities/Templates/Extensions/SuperBuild/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.1) +cmake_minimum_required(VERSION 3.5) project(TemplateKey)