Skip to content
Browse files

ENH: use CMake 2.6 (to avoid more policy issues)

  • Loading branch information...
1 parent e1c9c5e commit 34042bef2bdccc9d4f64db3ceabcadb8dc3086d9 barre committed
View
5 CMake/KWWidgetsInternationalizationMacros.cmake
@@ -115,10 +115,7 @@
# CREATE_MO_TARGET was true.
# Default to 0.
-cmake_minimum_required(VERSION 2.4)
-if(COMMAND cmake_policy)
- cmake_policy(SET CMP0003 NEW)
-endif(COMMAND cmake_policy)
+cmake_minimum_required(VERSION 2.6)
macro(KWWidgets_CREATE_GETTEXT_TARGETS)
View
5 CMakeLists.txt
@@ -1,7 +1,4 @@
-cmake_minimum_required(VERSION 2.4)
-if(COMMAND cmake_policy)
- cmake_policy(SET CMP0003 NEW)
-endif(COMMAND cmake_policy)
+cmake_minimum_required(VERSION 2.6)
project(KWWidgets)
View
5 Examples/CMakeLists.txt
@@ -1,7 +1,4 @@
-cmake_minimum_required(VERSION 2.4)
-if(COMMAND cmake_policy)
- cmake_policy(SET CMP0003 NEW)
-endif(COMMAND cmake_policy)
+cmake_minimum_required(VERSION 2.6)
project(KWWidgetsExamples)
View
5 Examples/Cxx/Callbacks/CMakeLists.txt
@@ -1,7 +1,4 @@
-cmake_minimum_required(VERSION 2.4)
-if(COMMAND cmake_policy)
- cmake_policy(SET CMP0003 NEW)
-endif(COMMAND cmake_policy)
+cmake_minimum_required(VERSION 2.6)
project(Callbacks)
View
5 Examples/Cxx/FileBrowserDialog/CMakeLists.txt
@@ -1,7 +1,4 @@
-cmake_minimum_required(VERSION 2.4)
-if(COMMAND cmake_policy)
- cmake_policy(SET CMP0003 NEW)
-endif(COMMAND cmake_policy)
+cmake_minimum_required(VERSION 2.6)
project(FileBrowserDialog)
View
5 Examples/Cxx/HelloWorld/CMakeLists.txt
@@ -1,7 +1,4 @@
-cmake_minimum_required(VERSION 2.4)
-if(COMMAND cmake_policy)
- cmake_policy(SET CMP0003 NEW)
-endif(COMMAND cmake_policy)
+cmake_minimum_required(VERSION 2.6)
project(HelloWorld)
View
5 Examples/Cxx/Internationalization/CMakeLists.txt
@@ -1,7 +1,4 @@
-cmake_minimum_required(VERSION 2.4)
-if(COMMAND cmake_policy)
- cmake_policy(SET CMP0003 NEW)
-endif(COMMAND cmake_policy)
+cmake_minimum_required(VERSION 2.6)
project(Internationalization)
View
5 Examples/Cxx/MedicalImageViewer/CMakeLists.txt
@@ -1,7 +1,4 @@
-cmake_minimum_required(VERSION 2.4)
-if(COMMAND cmake_policy)
- cmake_policy(SET CMP0003 NEW)
-endif(COMMAND cmake_policy)
+cmake_minimum_required(VERSION 2.6)
project(MedicalImageViewer)
View
5 Examples/Cxx/PolygonalObjectViewer/CMakeLists.txt
@@ -1,7 +1,4 @@
-cmake_minimum_required(VERSION 2.4)
-if(COMMAND cmake_policy)
- cmake_policy(SET CMP0003 NEW)
-endif(COMMAND cmake_policy)
+cmake_minimum_required(VERSION 2.6)
project(PolygonalObjectViewer)
View
5 Examples/Cxx/SOViewer/CMakeLists.txt
@@ -1,7 +1,4 @@
-cmake_minimum_required(VERSION 2.4)
-if(COMMAND cmake_policy)
- cmake_policy(SET CMP0003 NEW)
-endif(COMMAND cmake_policy)
+cmake_minimum_required(VERSION 2.6)
project(SOViewer)
View
5 Examples/Cxx/Theme/CMakeLists.txt
@@ -1,7 +1,4 @@
-cmake_minimum_required(VERSION 2.4)
-if(COMMAND cmake_policy)
- cmake_policy(SET CMP0003 NEW)
-endif(COMMAND cmake_policy)
+cmake_minimum_required(VERSION 2.6)
project(Theme)
View
5 Examples/Cxx/Tutorial1/CMakeLists.txt
@@ -1,7 +1,4 @@
-cmake_minimum_required(VERSION 2.4)
-if(COMMAND cmake_policy)
- cmake_policy(SET CMP0003 NEW)
-endif(COMMAND cmake_policy)
+cmake_minimum_required(VERSION 2.6)
project(Tutorial1)
View
5 Examples/Cxx/WidgetsTour/CMakeLists.txt
@@ -1,7 +1,4 @@
-cmake_minimum_required(VERSION 2.4)
-if(COMMAND cmake_policy)
- cmake_policy(SET CMP0003 NEW)
-endif(COMMAND cmake_policy)
+cmake_minimum_required(VERSION 2.6)
project(WidgetsTour)
View
5 Examples/Cxx/WindowWithPanels/CMakeLists.txt
@@ -1,7 +1,4 @@
-cmake_minimum_required(VERSION 2.4)
-if(COMMAND cmake_policy)
- cmake_policy(SET CMP0003 NEW)
-endif(COMMAND cmake_policy)
+cmake_minimum_required(VERSION 2.6)
project(WindowWithPanels)
View
5 Examples/Cxx/WizardDialog/CMakeLists.txt
@@ -1,7 +1,4 @@
-cmake_minimum_required(VERSION 2.4)
-if(COMMAND cmake_policy)
- cmake_policy(SET CMP0003 NEW)
-endif(COMMAND cmake_policy)
+cmake_minimum_required(VERSION 2.6)
project(WizardDialog)
View
5 Examples/Python/HelloWorld/CMakeLists.txt
@@ -1,7 +1,4 @@
-cmake_minimum_required(VERSION 2.4)
-if(COMMAND cmake_policy)
- cmake_policy(SET CMP0003 NEW)
-endif(COMMAND cmake_policy)
+cmake_minimum_required(VERSION 2.6)
project(HelloWorld)
View
5 Examples/Python/WidgetsTour/CMakeLists.txt
@@ -1,7 +1,4 @@
-cmake_minimum_required(VERSION 2.4)
-if(COMMAND cmake_policy)
- cmake_policy(SET CMP0003 NEW)
-endif(COMMAND cmake_policy)
+cmake_minimum_required(VERSION 2.6)
project(WidgetsTour)
View
5 Examples/Tcl/HelloWorld/CMakeLists.txt
@@ -1,7 +1,4 @@
-cmake_minimum_required(VERSION 2.4)
-if(COMMAND cmake_policy)
- cmake_policy(SET CMP0003 NEW)
-endif(COMMAND cmake_policy)
+cmake_minimum_required(VERSION 2.6)
project(HelloWorld)
View
5 Examples/Tcl/MedicalImageViewer/CMakeLists.txt
@@ -1,7 +1,4 @@
-cmake_minimum_required(VERSION 2.4)
-if(COMMAND cmake_policy)
- cmake_policy(SET CMP0003 NEW)
-endif(COMMAND cmake_policy)
+cmake_minimum_required(VERSION 2.6)
project(MedicalImageViewer)
View
5 Examples/Tcl/PolygonalObjectViewer/CMakeLists.txt
@@ -1,7 +1,4 @@
-cmake_minimum_required(VERSION 2.4)
-if(COMMAND cmake_policy)
- cmake_policy(SET CMP0003 NEW)
-endif(COMMAND cmake_policy)
+cmake_minimum_required(VERSION 2.6)
project(PolygonalObjectViewer)
View
5 Examples/Tcl/WidgetsTour/CMakeLists.txt
@@ -1,7 +1,4 @@
-cmake_minimum_required(VERSION 2.4)
-if(COMMAND cmake_policy)
- cmake_policy(SET CMP0003 NEW)
-endif(COMMAND cmake_policy)
+cmake_minimum_required(VERSION 2.6)
project(WidgetsTour)
View
5 Examples/Tcl/WindowWithPanels/CMakeLists.txt
@@ -1,7 +1,4 @@
-cmake_minimum_required(VERSION 2.4)
-if(COMMAND cmake_policy)
- cmake_policy(SET CMP0003 NEW)
-endif(COMMAND cmake_policy)
+cmake_minimum_required(VERSION 2.6)
project(WindowWithPanels)

0 comments on commit 34042be

Please sign in to comment.
Something went wrong with that request. Please try again.