summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
Diffstat (limited to 'Tests')
-rw-r--r--Tests/Complex/CMakeLists.txt3
-rw-r--r--Tests/Complex/Executable/complex.cxx8
-rw-r--r--Tests/Complex/cmTestConfigure.h.in1
-rw-r--r--Tests/ComplexOneConfig/CMakeLists.txt3
-rw-r--r--Tests/ComplexOneConfig/Executable/complex.cxx8
-rw-r--r--Tests/ComplexOneConfig/cmTestConfigure.h.in1
-rw-r--r--Tests/ComplexRelativePaths/CMakeLists.txt3
-rw-r--r--Tests/ComplexRelativePaths/Executable/complex.cxx8
-rw-r--r--Tests/ComplexRelativePaths/cmTestConfigure.h.in1
9 files changed, 36 insertions, 0 deletions
diff --git a/Tests/Complex/CMakeLists.txt b/Tests/Complex/CMakeLists.txt
index 720ae1a..c2448a4 100644
--- a/Tests/Complex/CMakeLists.txt
+++ b/Tests/Complex/CMakeLists.txt
@@ -3,6 +3,9 @@
#
PROJECT (Complex)
+CMAKE_MINIMUM_REQUIRED(VERSION 1.3)
+
+
#
# Use the ansi CXX compile flag for building cmake
#
diff --git a/Tests/Complex/Executable/complex.cxx b/Tests/Complex/Executable/complex.cxx
index af49dcd..7d86179 100644
--- a/Tests/Complex/Executable/complex.cxx
+++ b/Tests/Complex/Executable/complex.cxx
@@ -647,6 +647,14 @@ int main()
#endif
#endif // defined(_WIN32) && !defined(__CYGWIN__)
+ if(strcmp(CMAKE_MINIMUM_REQUIRED_VERSION, "1.3") == 0)
+ {
+ cmPassed("CMAKE_MINIMUM_REQUIRED_VERSION is set to 1.3");
+ }
+ else
+ {
+ cmFailed("CMAKE_MINIMUM_REQUIRED_VERSION is not set to the expected 1.3");
+ }
// ----------------------------------------------------------------------
// Summary
diff --git a/Tests/Complex/cmTestConfigure.h.in b/Tests/Complex/cmTestConfigure.h.in
index 5edff15..58a3f60 100644
--- a/Tests/Complex/cmTestConfigure.h.in
+++ b/Tests/Complex/cmTestConfigure.h.in
@@ -54,3 +54,4 @@
#if defined(_WIN32) && !defined(__CYGWIN__)
#define REGISTRY_TEST_PATH "${REGISTRY_TEST_PATH}"
#endif
+#define CMAKE_MINIMUM_REQUIRED_VERSION "${CMAKE_MINIMUM_REQUIRED_VERSION}"
diff --git a/Tests/ComplexOneConfig/CMakeLists.txt b/Tests/ComplexOneConfig/CMakeLists.txt
index 720ae1a..c2448a4 100644
--- a/Tests/ComplexOneConfig/CMakeLists.txt
+++ b/Tests/ComplexOneConfig/CMakeLists.txt
@@ -3,6 +3,9 @@
#
PROJECT (Complex)
+CMAKE_MINIMUM_REQUIRED(VERSION 1.3)
+
+
#
# Use the ansi CXX compile flag for building cmake
#
diff --git a/Tests/ComplexOneConfig/Executable/complex.cxx b/Tests/ComplexOneConfig/Executable/complex.cxx
index af49dcd..7d86179 100644
--- a/Tests/ComplexOneConfig/Executable/complex.cxx
+++ b/Tests/ComplexOneConfig/Executable/complex.cxx
@@ -647,6 +647,14 @@ int main()
#endif
#endif // defined(_WIN32) && !defined(__CYGWIN__)
+ if(strcmp(CMAKE_MINIMUM_REQUIRED_VERSION, "1.3") == 0)
+ {
+ cmPassed("CMAKE_MINIMUM_REQUIRED_VERSION is set to 1.3");
+ }
+ else
+ {
+ cmFailed("CMAKE_MINIMUM_REQUIRED_VERSION is not set to the expected 1.3");
+ }
// ----------------------------------------------------------------------
// Summary
diff --git a/Tests/ComplexOneConfig/cmTestConfigure.h.in b/Tests/ComplexOneConfig/cmTestConfigure.h.in
index 5edff15..58a3f60 100644
--- a/Tests/ComplexOneConfig/cmTestConfigure.h.in
+++ b/Tests/ComplexOneConfig/cmTestConfigure.h.in
@@ -54,3 +54,4 @@
#if defined(_WIN32) && !defined(__CYGWIN__)
#define REGISTRY_TEST_PATH "${REGISTRY_TEST_PATH}"
#endif
+#define CMAKE_MINIMUM_REQUIRED_VERSION "${CMAKE_MINIMUM_REQUIRED_VERSION}"
diff --git a/Tests/ComplexRelativePaths/CMakeLists.txt b/Tests/ComplexRelativePaths/CMakeLists.txt
index 720ae1a..c2448a4 100644
--- a/Tests/ComplexRelativePaths/CMakeLists.txt
+++ b/Tests/ComplexRelativePaths/CMakeLists.txt
@@ -3,6 +3,9 @@
#
PROJECT (Complex)
+CMAKE_MINIMUM_REQUIRED(VERSION 1.3)
+
+
#
# Use the ansi CXX compile flag for building cmake
#
diff --git a/Tests/ComplexRelativePaths/Executable/complex.cxx b/Tests/ComplexRelativePaths/Executable/complex.cxx
index af49dcd..7d86179 100644
--- a/Tests/ComplexRelativePaths/Executable/complex.cxx
+++ b/Tests/ComplexRelativePaths/Executable/complex.cxx
@@ -647,6 +647,14 @@ int main()
#endif
#endif // defined(_WIN32) && !defined(__CYGWIN__)
+ if(strcmp(CMAKE_MINIMUM_REQUIRED_VERSION, "1.3") == 0)
+ {
+ cmPassed("CMAKE_MINIMUM_REQUIRED_VERSION is set to 1.3");
+ }
+ else
+ {
+ cmFailed("CMAKE_MINIMUM_REQUIRED_VERSION is not set to the expected 1.3");
+ }
// ----------------------------------------------------------------------
// Summary
diff --git a/Tests/ComplexRelativePaths/cmTestConfigure.h.in b/Tests/ComplexRelativePaths/cmTestConfigure.h.in
index 5edff15..58a3f60 100644
--- a/Tests/ComplexRelativePaths/cmTestConfigure.h.in
+++ b/Tests/ComplexRelativePaths/cmTestConfigure.h.in
@@ -54,3 +54,4 @@
#if defined(_WIN32) && !defined(__CYGWIN__)
#define REGISTRY_TEST_PATH "${REGISTRY_TEST_PATH}"
#endif
+#define CMAKE_MINIMUM_REQUIRED_VERSION "${CMAKE_MINIMUM_REQUIRED_VERSION}"