From ce8810c4e7b95637136c3e47b87f8fa409bfbbee Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Tue, 25 Mar 2008 11:27:18 -0400 Subject: [PATCH] ENH: preclean some warnings --- Tests/Assembler/CMakeLists.txt | 1 + Tests/BuildDepends/CMakeLists.txt | 1 + Tests/BundleTest/CMakeLists.txt | 1 + Tests/COnly/CMakeLists.txt | 1 + Tests/CTestTest/CMakeLists.txt | 1 + Tests/CTestTest2/CMakeLists.txt | 1 + Tests/CommandLineTest/CMakeLists.txt | 1 + Tests/ConvLibrary/CMakeLists.txt | 1 + Tests/CustComDepend/CMakeLists.txt | 1 + Tests/CustomCommand/CMakeLists.txt | 1 + Tests/CustomCommandWorkingDirectory/CMakeLists.txt | 1 + Tests/Dependency/CMakeLists.txt | 1 + Tests/DocTest/CMakeLists.txt | 1 + Tests/ExportImport/CMakeLists.txt | 1 + Tests/ExportImport/Export/CMakeLists.txt | 1 + Tests/ExportImport/Import/CMakeLists.txt | 1 + Tests/ExternalOBJ/CMakeLists.txt | 1 + Tests/ExternalOBJ/Object/CMakeLists.txt | 1 + Tests/FindPackageTest/CMakeLists.txt | 1 + Tests/Fortran/CMakeLists.txt | 1 + Tests/Framework/CMakeLists.txt | 1 + Tests/FunctionTest/CMakeLists.txt | 1 + Tests/Java/CMakeLists.txt | 1 + Tests/Jump/CMakeLists.txt | 1 + Tests/LoadCommand/CMakeCommands/CMakeLists.txt | 1 + Tests/LoadCommand/CMakeLists.txt | 1 + Tests/LoadCommandOneConfig/CMakeCommands/CMakeLists.txt | 1 + Tests/LoadCommandOneConfig/CMakeLists.txt | 1 + Tests/MacroTest/CMakeLists.txt | 1 + Tests/MakeClean/CMakeLists.txt | 1 + Tests/MathTest/CMakeLists.txt | 1 + Tests/NewlineArgs/CMakeLists.txt | 1 + Tests/OutOfSource/CMakeLists.txt | 1 + Tests/Plugin/CMakeLists.txt | 1 + Tests/PrecompiledHeader/CMakeLists.txt | 1 + Tests/Properties/CMakeLists.txt | 1 + Tests/ReturnTest/CMakeLists.txt | 1 + Tests/RuntimePath/CMakeLists.txt | 1 + Tests/SameName/CMakeLists.txt | 1 + Tests/SetLang/CMakeLists.txt | 1 + Tests/SimpleExclude/CMakeLists.txt | 1 + Tests/SimpleInstall/CMakeLists.txt | 1 + Tests/SimpleInstallS2/CMakeLists.txt | 1 + Tests/SourceGroups/CMakeLists.txt | 1 + Tests/StringFileTest/CMakeLists.txt | 3 ++- Tests/SubDir/CMakeLists.txt | 1 + Tests/SubDir/Examples/CMakeLists.txt | 1 + Tests/SubDir/Examples/example1/CMakeLists.txt | 1 + Tests/SubDirSpaces/CMakeLists.txt | 1 + Tests/SubDirSpaces/Some Examples/CMakeLists.txt | 1 + Tests/SubDirSpaces/Some Examples/example1/CMakeLists.txt | 1 + Tests/SubProject/CMakeLists.txt | 1 + Tests/SwigTest/CMakeLists.txt | 1 + Tests/SystemInformation/CMakeLists.txt | 1 + Tests/TarTest/CMakeLists.txt | 1 + Tests/TargetName/CMakeLists.txt | 1 + Tests/TestDriver/CMakeLists.txt | 3 ++- Tests/Testing/CMakeLists.txt | 1 + Tests/TryCompile/CMakeLists.txt | 1 + Tests/Tutorial/Step1/CMakeLists.txt | 1 + Tests/Tutorial/Step2/CMakeLists.txt | 1 + Tests/Tutorial/Step3/CMakeLists.txt | 1 + Tests/Tutorial/Step4/CMakeLists.txt | 1 + Tests/Tutorial/Step5/CMakeLists.txt | 1 + Tests/Tutorial/Step6/CMakeLists.txt | 1 + Tests/Tutorial/Step7/CMakeLists.txt | 1 + Tests/UseWX/CMakeLists.txt | 1 + Tests/VSExternalInclude/CMakeLists.txt | 1 + Tests/Wrapping/CMakeLists.txt | 1 + Tests/X11/CMakeLists.txt | 1 + 70 files changed, 72 insertions(+), 2 deletions(-) diff --git a/Tests/Assembler/CMakeLists.txt b/Tests/Assembler/CMakeLists.txt index 68035ea6e..b2937bbb1 100644 --- a/Tests/Assembler/CMakeLists.txt +++ b/Tests/Assembler/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) project(Assembler) set(SRCS) diff --git a/Tests/BuildDepends/CMakeLists.txt b/Tests/BuildDepends/CMakeLists.txt index a56e94404..0d143ca17 100644 --- a/Tests/BuildDepends/CMakeLists.txt +++ b/Tests/BuildDepends/CMakeLists.txt @@ -4,6 +4,7 @@ # are working the executable should relink with the new # value. The subdir Project contains the CMakelists.txt # and source files for the test project. +cmake_minimum_required (VERSION 2.6) project(BuildDepends) # This entire test takes place during the initial diff --git a/Tests/BundleTest/CMakeLists.txt b/Tests/BundleTest/CMakeLists.txt index 2eec9eaf3..3f95afb51 100644 --- a/Tests/BundleTest/CMakeLists.txt +++ b/Tests/BundleTest/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT(BundleTest) SET(MACOSX_BUNDLE_INFO_STRING "bundle_info_string") SET(CMAKE_MacOSX_Content_COMPILE_OBJECT "\"${CMAKE_COMMAND}\" -E copy_if_different ") diff --git a/Tests/COnly/CMakeLists.txt b/Tests/COnly/CMakeLists.txt index c4d76e015..77420555f 100644 --- a/Tests/COnly/CMakeLists.txt +++ b/Tests/COnly/CMakeLists.txt @@ -1,4 +1,5 @@ # a simple C only test case +cmake_minimum_required (VERSION 2.6) project (COnly C) set(CMAKE_DEBUG_POSTFIX "_test_debug_postfix") diff --git a/Tests/CTestTest/CMakeLists.txt b/Tests/CTestTest/CMakeLists.txt index 70e368a28..7d8761238 100644 --- a/Tests/CTestTest/CMakeLists.txt +++ b/Tests/CTestTest/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT(CTestTest) SET(DART_ROOT "" CACHE STRING "" FORCE) diff --git a/Tests/CTestTest2/CMakeLists.txt b/Tests/CTestTest2/CMakeLists.txt index 7678748ba..ec793c418 100644 --- a/Tests/CTestTest2/CMakeLists.txt +++ b/Tests/CTestTest2/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT(CTestTest2) SET(DART_ROOT "" CACHE STRING "" FORCE) diff --git a/Tests/CommandLineTest/CMakeLists.txt b/Tests/CommandLineTest/CMakeLists.txt index f9abfdfee..e01a4c702 100644 --- a/Tests/CommandLineTest/CMakeLists.txt +++ b/Tests/CommandLineTest/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT(CommandLineTest) GET_FILENAME_COMPONENT(CMAKE_BIN_DIR ${CMAKE_COMMAND} PATH) diff --git a/Tests/ConvLibrary/CMakeLists.txt b/Tests/ConvLibrary/CMakeLists.txt index bf1ab8377..afc1cb653 100644 --- a/Tests/ConvLibrary/CMakeLists.txt +++ b/Tests/ConvLibrary/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) project(ConvLibrary) # create a source list diff --git a/Tests/CustComDepend/CMakeLists.txt b/Tests/CustComDepend/CMakeLists.txt index e4a332574..d5266842d 100644 --- a/Tests/CustComDepend/CMakeLists.txt +++ b/Tests/CustComDepend/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) project(CustComDepend) include_directories("${CustComDepend_SOURCE_DIR}") add_definitions(-D_CRT_SECURE_NO_DEPRECATE=1) diff --git a/Tests/CustomCommand/CMakeLists.txt b/Tests/CustomCommand/CMakeLists.txt index 71ded6d44..29c06cd30 100644 --- a/Tests/CustomCommand/CMakeLists.txt +++ b/Tests/CustomCommand/CMakeLists.txt @@ -1,6 +1,7 @@ # # Wrapping # +cmake_minimum_required (VERSION 2.6) PROJECT (CustomCommand) ADD_SUBDIRECTORY(GeneratedHeader) diff --git a/Tests/CustomCommandWorkingDirectory/CMakeLists.txt b/Tests/CustomCommandWorkingDirectory/CMakeLists.txt index 4ddc87a55..57cb712ab 100644 --- a/Tests/CustomCommandWorkingDirectory/CMakeLists.txt +++ b/Tests/CustomCommandWorkingDirectory/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT(TestWorkingDir) ADD_CUSTOM_COMMAND( diff --git a/Tests/Dependency/CMakeLists.txt b/Tests/Dependency/CMakeLists.txt index f3578ac9f..729c028db 100644 --- a/Tests/Dependency/CMakeLists.txt +++ b/Tests/Dependency/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT( Dependency ) SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_ANSI_CFLAGS}") diff --git a/Tests/DocTest/CMakeLists.txt b/Tests/DocTest/CMakeLists.txt index bd78992f8..837328e81 100644 --- a/Tests/DocTest/CMakeLists.txt +++ b/Tests/DocTest/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) project (DocTest) add_executable (DocTest DocTest.cxx) diff --git a/Tests/ExportImport/CMakeLists.txt b/Tests/ExportImport/CMakeLists.txt index 55771136f..3b54e9dde 100644 --- a/Tests/ExportImport/CMakeLists.txt +++ b/Tests/ExportImport/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) project(ExportImport C) # Wipe out the install tree to make sure the exporter works. diff --git a/Tests/ExportImport/Export/CMakeLists.txt b/Tests/ExportImport/Export/CMakeLists.txt index 74ff8ed64..9f1bab3bf 100644 --- a/Tests/ExportImport/Export/CMakeLists.txt +++ b/Tests/ExportImport/Export/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) project(Export C) # We need ansi C support. diff --git a/Tests/ExportImport/Import/CMakeLists.txt b/Tests/ExportImport/Import/CMakeLists.txt index b54a0692e..5a946edab 100644 --- a/Tests/ExportImport/Import/CMakeLists.txt +++ b/Tests/ExportImport/Import/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) project(Import C) # We need ansi C support. diff --git a/Tests/ExternalOBJ/CMakeLists.txt b/Tests/ExternalOBJ/CMakeLists.txt index 1db0515c4..2b126e1e1 100644 --- a/Tests/ExternalOBJ/CMakeLists.txt +++ b/Tests/ExternalOBJ/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT (ExternalOBJ) IF(APPLE) diff --git a/Tests/ExternalOBJ/Object/CMakeLists.txt b/Tests/ExternalOBJ/Object/CMakeLists.txt index 7c01e54da..6f1d7e3fb 100644 --- a/Tests/ExternalOBJ/Object/CMakeLists.txt +++ b/Tests/ExternalOBJ/Object/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT(Object) IF(APPLE) # set _CMAKE_OSX_MACHINE to umame -m diff --git a/Tests/FindPackageTest/CMakeLists.txt b/Tests/FindPackageTest/CMakeLists.txt index 2925db0a9..e19c7098a 100644 --- a/Tests/FindPackageTest/CMakeLists.txt +++ b/Tests/FindPackageTest/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT(FindPackageTest) # Look for a package that has a find module and may be found. diff --git a/Tests/Fortran/CMakeLists.txt b/Tests/Fortran/CMakeLists.txt index 54f18d06d..ca7d89a4d 100644 --- a/Tests/Fortran/CMakeLists.txt +++ b/Tests/Fortran/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT(testf Fortran) SET(CMAKE_VERBOSE_MAKEFILE 1) MESSAGE("ENV_FLAGS = $ENV{FFLAGS}") diff --git a/Tests/Framework/CMakeLists.txt b/Tests/Framework/CMakeLists.txt index a6707a491..58c2cfb11 100644 --- a/Tests/Framework/CMakeLists.txt +++ b/Tests/Framework/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) project(Framework) add_library(foo SHARED diff --git a/Tests/FunctionTest/CMakeLists.txt b/Tests/FunctionTest/CMakeLists.txt index 91f51b66b..3a25bb410 100644 --- a/Tests/FunctionTest/CMakeLists.txt +++ b/Tests/FunctionTest/CMakeLists.txt @@ -1,4 +1,5 @@ # a simple C only test case +cmake_minimum_required (VERSION 2.6) PROJECT (FunctionTest) SET(CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS}") diff --git a/Tests/Java/CMakeLists.txt b/Tests/Java/CMakeLists.txt index 2af5b8932..b0dfaa5e6 100644 --- a/Tests/Java/CMakeLists.txt +++ b/Tests/Java/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT(hello Java) SET(CMAKE_VERBOSE_MAKEFILE 1) diff --git a/Tests/Jump/CMakeLists.txt b/Tests/Jump/CMakeLists.txt index 18776a1eb..4bdafd09b 100644 --- a/Tests/Jump/CMakeLists.txt +++ b/Tests/Jump/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT(Jump) SET(CMAKE_IGNORE_DEPENDENCIES_ORDERING 1) diff --git a/Tests/LoadCommand/CMakeCommands/CMakeLists.txt b/Tests/LoadCommand/CMakeCommands/CMakeLists.txt index 55b6b8bee..4ba21d274 100644 --- a/Tests/LoadCommand/CMakeCommands/CMakeLists.txt +++ b/Tests/LoadCommand/CMakeCommands/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT(CMAKE_LOADED_COMMANDS) IF (MUDSLIDE_TYPE MATCHES MUCHO) diff --git a/Tests/LoadCommand/CMakeLists.txt b/Tests/LoadCommand/CMakeLists.txt index 189f1c17b..e99105a74 100644 --- a/Tests/LoadCommand/CMakeLists.txt +++ b/Tests/LoadCommand/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT(LoadCommand) # set a definition diff --git a/Tests/LoadCommandOneConfig/CMakeCommands/CMakeLists.txt b/Tests/LoadCommandOneConfig/CMakeCommands/CMakeLists.txt index 55b6b8bee..4ba21d274 100644 --- a/Tests/LoadCommandOneConfig/CMakeCommands/CMakeLists.txt +++ b/Tests/LoadCommandOneConfig/CMakeCommands/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT(CMAKE_LOADED_COMMANDS) IF (MUDSLIDE_TYPE MATCHES MUCHO) diff --git a/Tests/LoadCommandOneConfig/CMakeLists.txt b/Tests/LoadCommandOneConfig/CMakeLists.txt index 189f1c17b..e99105a74 100644 --- a/Tests/LoadCommandOneConfig/CMakeLists.txt +++ b/Tests/LoadCommandOneConfig/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT(LoadCommand) # set a definition diff --git a/Tests/MacroTest/CMakeLists.txt b/Tests/MacroTest/CMakeLists.txt index 86937a9e7..d0220ff92 100644 --- a/Tests/MacroTest/CMakeLists.txt +++ b/Tests/MacroTest/CMakeLists.txt @@ -1,4 +1,5 @@ # a simple C only test case +cmake_minimum_required (VERSION 2.6) PROJECT (MacroTest) SET(CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS}") diff --git a/Tests/MakeClean/CMakeLists.txt b/Tests/MakeClean/CMakeLists.txt index 6f094769a..aaf39d79d 100644 --- a/Tests/MakeClean/CMakeLists.txt +++ b/Tests/MakeClean/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT(MakeClean) SET(CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS}") diff --git a/Tests/MathTest/CMakeLists.txt b/Tests/MathTest/CMakeLists.txt index bff35f761..d1e5b1acd 100644 --- a/Tests/MathTest/CMakeLists.txt +++ b/Tests/MathTest/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT(MathTest) diff --git a/Tests/NewlineArgs/CMakeLists.txt b/Tests/NewlineArgs/CMakeLists.txt index eb618a323..a18230488 100644 --- a/Tests/NewlineArgs/CMakeLists.txt +++ b/Tests/NewlineArgs/CMakeLists.txt @@ -1,4 +1,5 @@ # a simple CXX only test case +cmake_minimum_required (VERSION 2.6) project (NewlineArgs CXX) add_definitions("-DTEST_FLAG_1 diff --git a/Tests/OutOfSource/CMakeLists.txt b/Tests/OutOfSource/CMakeLists.txt index 265d47deb..e250f4177 100644 --- a/Tests/OutOfSource/CMakeLists.txt +++ b/Tests/OutOfSource/CMakeLists.txt @@ -1,4 +1,5 @@ # a simple test cas +cmake_minimum_required (VERSION 2.6) project (OutOfSource) add_subdirectory(SubDir) diff --git a/Tests/Plugin/CMakeLists.txt b/Tests/Plugin/CMakeLists.txt index 4e8ff9e67..2245a8a98 100644 --- a/Tests/Plugin/CMakeLists.txt +++ b/Tests/Plugin/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT(Plugin) # Test per-target output directory properties. diff --git a/Tests/PrecompiledHeader/CMakeLists.txt b/Tests/PrecompiledHeader/CMakeLists.txt index 8b76eb48c..b0b7989ba 100644 --- a/Tests/PrecompiledHeader/CMakeLists.txt +++ b/Tests/PrecompiledHeader/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT(PrecompiledHeader C) # Make sure the proper compiler is in use. diff --git a/Tests/Properties/CMakeLists.txt b/Tests/Properties/CMakeLists.txt index a889e3edf..546a96aef 100644 --- a/Tests/Properties/CMakeLists.txt +++ b/Tests/Properties/CMakeLists.txt @@ -1,4 +1,5 @@ # a simple CXX only test case +cmake_minimum_required (VERSION 2.6) project (Properties) # these first three tests really test both properties and the management of diff --git a/Tests/ReturnTest/CMakeLists.txt b/Tests/ReturnTest/CMakeLists.txt index e48c88df7..bd0966e01 100644 --- a/Tests/ReturnTest/CMakeLists.txt +++ b/Tests/ReturnTest/CMakeLists.txt @@ -1,4 +1,5 @@ # a simple C only test case +cmake_minimum_required (VERSION 2.6) project (ReturnTest) set (CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS}") diff --git a/Tests/RuntimePath/CMakeLists.txt b/Tests/RuntimePath/CMakeLists.txt index 4a5fbbd64..55557093a 100644 --- a/Tests/RuntimePath/CMakeLists.txt +++ b/Tests/RuntimePath/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) project(RuntimePath C) if(CMAKE_ANSI_CFLAGS) diff --git a/Tests/SameName/CMakeLists.txt b/Tests/SameName/CMakeLists.txt index 1c5cffbbe..a4b993cfd 100644 --- a/Tests/SameName/CMakeLists.txt +++ b/Tests/SameName/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT(SameName C) ADD_SUBDIRECTORY(Lib1) diff --git a/Tests/SetLang/CMakeLists.txt b/Tests/SetLang/CMakeLists.txt index dda13c1f7..ab6570c33 100644 --- a/Tests/SetLang/CMakeLists.txt +++ b/Tests/SetLang/CMakeLists.txt @@ -1,4 +1,5 @@ # test forcing a source file language to c++ from c +cmake_minimum_required (VERSION 2.6) project(SetLang) # force this to be verbose so I can debug a dashboard entry SET(CMAKE_VERBOSE_MAKEFILE 1) diff --git a/Tests/SimpleExclude/CMakeLists.txt b/Tests/SimpleExclude/CMakeLists.txt index e94f495a4..baca23e39 100644 --- a/Tests/SimpleExclude/CMakeLists.txt +++ b/Tests/SimpleExclude/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) project(SimpleExclude C) set(EXECUTABLE_OUTPUT_PATH "${SimpleExclude_BINARY_DIR}" CACHE INTERNAL "" FORCE) diff --git a/Tests/SimpleInstall/CMakeLists.txt b/Tests/SimpleInstall/CMakeLists.txt index 34989d254..23d3d2720 100644 --- a/Tests/SimpleInstall/CMakeLists.txt +++ b/Tests/SimpleInstall/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT (TestSimpleInstall) SET(CMAKE_VERBOSE_MAKEFILE 1) SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY diff --git a/Tests/SimpleInstallS2/CMakeLists.txt b/Tests/SimpleInstallS2/CMakeLists.txt index 34989d254..23d3d2720 100644 --- a/Tests/SimpleInstallS2/CMakeLists.txt +++ b/Tests/SimpleInstallS2/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT (TestSimpleInstall) SET(CMAKE_VERBOSE_MAKEFILE 1) SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY diff --git a/Tests/SourceGroups/CMakeLists.txt b/Tests/SourceGroups/CMakeLists.txt index 30f66631c..2bc511d25 100644 --- a/Tests/SourceGroups/CMakeLists.txt +++ b/Tests/SourceGroups/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) project(SourceGroups) # We need ansi C support, otherwise it doesn't build e.g. on HP-UX: diff --git a/Tests/StringFileTest/CMakeLists.txt b/Tests/StringFileTest/CMakeLists.txt index f3041c348..8c5f3fac6 100644 --- a/Tests/StringFileTest/CMakeLists.txt +++ b/Tests/StringFileTest/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT(StringFileTest) INCLUDE_DIRECTORIES(${StringFileTest_BINARY_DIR}) @@ -100,7 +101,7 @@ STRING(STRIP " ST1 " ST1) STRING(STRIP "ST2 " ST2) -STRING(STRIP " ST3" ST3) +STRING(STRIP " ST3" ST3) FOREACH(var ST1 ST2 ST3) IF("${var}" STREQUAL "${${var}}") diff --git a/Tests/SubDir/CMakeLists.txt b/Tests/SubDir/CMakeLists.txt index b0f9f6252..9cfbe25ce 100644 --- a/Tests/SubDir/CMakeLists.txt +++ b/Tests/SubDir/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT(SUBDIR) SUBDIRS(Executable EXCLUDE_FROM_ALL Examples) WRITE_FILE(${SUBDIR_BINARY_DIR}/ShouldBeHere "This file should exist.") diff --git a/Tests/SubDir/Examples/CMakeLists.txt b/Tests/SubDir/Examples/CMakeLists.txt index 44f2ad236..b0f1e896c 100644 --- a/Tests/SubDir/Examples/CMakeLists.txt +++ b/Tests/SubDir/Examples/CMakeLists.txt @@ -1,2 +1,3 @@ +cmake_minimum_required (VERSION 2.6) PROJECT(Examples) SUBDIRS(example1 example2) diff --git a/Tests/SubDir/Examples/example1/CMakeLists.txt b/Tests/SubDir/Examples/example1/CMakeLists.txt index e465899d5..303618321 100644 --- a/Tests/SubDir/Examples/example1/CMakeLists.txt +++ b/Tests/SubDir/Examples/example1/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT(example1) ADD_EXECUTABLE(example1 example1.cxx) diff --git a/Tests/SubDirSpaces/CMakeLists.txt b/Tests/SubDirSpaces/CMakeLists.txt index fb04f837d..a647fef30 100644 --- a/Tests/SubDirSpaces/CMakeLists.txt +++ b/Tests/SubDirSpaces/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT(SUBDIR) # Some systems do not seem to support rpath with spaces. diff --git a/Tests/SubDirSpaces/Some Examples/CMakeLists.txt b/Tests/SubDirSpaces/Some Examples/CMakeLists.txt index 44f2ad236..b0f1e896c 100644 --- a/Tests/SubDirSpaces/Some Examples/CMakeLists.txt +++ b/Tests/SubDirSpaces/Some Examples/CMakeLists.txt @@ -1,2 +1,3 @@ +cmake_minimum_required (VERSION 2.6) PROJECT(Examples) SUBDIRS(example1 example2) diff --git a/Tests/SubDirSpaces/Some Examples/example1/CMakeLists.txt b/Tests/SubDirSpaces/Some Examples/example1/CMakeLists.txt index e465899d5..303618321 100644 --- a/Tests/SubDirSpaces/Some Examples/example1/CMakeLists.txt +++ b/Tests/SubDirSpaces/Some Examples/example1/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT(example1) ADD_EXECUTABLE(example1 example1.cxx) diff --git a/Tests/SubProject/CMakeLists.txt b/Tests/SubProject/CMakeLists.txt index f825749cf..b669621df 100644 --- a/Tests/SubProject/CMakeLists.txt +++ b/Tests/SubProject/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) project(SubProject) message("${CMAKE_IMPORT_LIBRARY_SUFFIX}") add_library(bar bar.cxx) diff --git a/Tests/SwigTest/CMakeLists.txt b/Tests/SwigTest/CMakeLists.txt index adf955fbe..5a8e61922 100644 --- a/Tests/SwigTest/CMakeLists.txt +++ b/Tests/SwigTest/CMakeLists.txt @@ -1,5 +1,6 @@ SET(language "python") +cmake_minimum_required (VERSION 2.6) PROJECT(example_${language}_class) diff --git a/Tests/SystemInformation/CMakeLists.txt b/Tests/SystemInformation/CMakeLists.txt index 5e015cedc..c4285758e 100644 --- a/Tests/SystemInformation/CMakeLists.txt +++ b/Tests/SystemInformation/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT(SystemInformation) INCLUDE_DIRECTORIES("This does not exists") diff --git a/Tests/TarTest/CMakeLists.txt b/Tests/TarTest/CMakeLists.txt index cfb26bf68..548712d88 100644 --- a/Tests/TarTest/CMakeLists.txt +++ b/Tests/TarTest/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT(TarTest) # this is macro that we will be running diff --git a/Tests/TargetName/CMakeLists.txt b/Tests/TargetName/CMakeLists.txt index 653286eb0..9729d21ff 100644 --- a/Tests/TargetName/CMakeLists.txt +++ b/Tests/TargetName/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) project(TargetName) add_subdirectory(executables) diff --git a/Tests/TestDriver/CMakeLists.txt b/Tests/TestDriver/CMakeLists.txt index 810c9ff58..bd5e97414 100644 --- a/Tests/TestDriver/CMakeLists.txt +++ b/Tests/TestDriver/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT(TestDriverTest) SET(Extra_SRCS testExtraStuff.cxx testExtraStuff2.cxx ) @@ -7,7 +8,7 @@ CREATE_TEST_SOURCELIST(testSrcs TestDriverTest.cxx test1.cxx test2.cxx - subdir/test3.cxx + subdir/test3.cxx EXTRA_INCLUDE testArgs.h FUNCTION testProccessArgs) ADD_EXECUTABLE(TestDriverTest ${testSrcs} ${Extra_SRCS}) diff --git a/Tests/Testing/CMakeLists.txt b/Tests/Testing/CMakeLists.txt index 9d9cf9ddb..c4459bb67 100644 --- a/Tests/Testing/CMakeLists.txt +++ b/Tests/Testing/CMakeLists.txt @@ -1,6 +1,7 @@ # # Testing # +cmake_minimum_required (VERSION 2.6) PROJECT (Testing) # diff --git a/Tests/TryCompile/CMakeLists.txt b/Tests/TryCompile/CMakeLists.txt index e3b495848..4667345bf 100644 --- a/Tests/TryCompile/CMakeLists.txt +++ b/Tests/TryCompile/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT(TryCompile) MACRO(TEST_ASSERT value msg) diff --git a/Tests/Tutorial/Step1/CMakeLists.txt b/Tests/Tutorial/Step1/CMakeLists.txt index 9691eee1d..e461d3c8b 100644 --- a/Tests/Tutorial/Step1/CMakeLists.txt +++ b/Tests/Tutorial/Step1/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) project (Tutorial) # The version number. diff --git a/Tests/Tutorial/Step2/CMakeLists.txt b/Tests/Tutorial/Step2/CMakeLists.txt index bceb98650..c82b7df98 100644 --- a/Tests/Tutorial/Step2/CMakeLists.txt +++ b/Tests/Tutorial/Step2/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) project (Tutorial) # The version number. diff --git a/Tests/Tutorial/Step3/CMakeLists.txt b/Tests/Tutorial/Step3/CMakeLists.txt index 5481bce9c..0b05fd737 100644 --- a/Tests/Tutorial/Step3/CMakeLists.txt +++ b/Tests/Tutorial/Step3/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) project (Tutorial) # The version number. diff --git a/Tests/Tutorial/Step4/CMakeLists.txt b/Tests/Tutorial/Step4/CMakeLists.txt index 19d24fdef..3b24b4416 100644 --- a/Tests/Tutorial/Step4/CMakeLists.txt +++ b/Tests/Tutorial/Step4/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) project (Tutorial) # The version number. diff --git a/Tests/Tutorial/Step5/CMakeLists.txt b/Tests/Tutorial/Step5/CMakeLists.txt index 9aed22731..3002ea084 100644 --- a/Tests/Tutorial/Step5/CMakeLists.txt +++ b/Tests/Tutorial/Step5/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) project (Tutorial) # The version number. diff --git a/Tests/Tutorial/Step6/CMakeLists.txt b/Tests/Tutorial/Step6/CMakeLists.txt index b1a61fb0f..4f70f4fc4 100644 --- a/Tests/Tutorial/Step6/CMakeLists.txt +++ b/Tests/Tutorial/Step6/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) project (Tutorial) # The version number. diff --git a/Tests/Tutorial/Step7/CMakeLists.txt b/Tests/Tutorial/Step7/CMakeLists.txt index 2e8908355..826599b9f 100644 --- a/Tests/Tutorial/Step7/CMakeLists.txt +++ b/Tests/Tutorial/Step7/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) project (Tutorial) # The version number. diff --git a/Tests/UseWX/CMakeLists.txt b/Tests/UseWX/CMakeLists.txt index ac997ff3f..8638a081a 100644 --- a/Tests/UseWX/CMakeLists.txt +++ b/Tests/UseWX/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT (UsewxWidgets) FIND_PACKAGE(wxWidgets REQUIRED) diff --git a/Tests/VSExternalInclude/CMakeLists.txt b/Tests/VSExternalInclude/CMakeLists.txt index 841df4f9e..5f4a6aa91 100644 --- a/Tests/VSExternalInclude/CMakeLists.txt +++ b/Tests/VSExternalInclude/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required (VERSION 2.6) PROJECT(VSExternalInclude) IF(${CMAKE_GENERATOR} MATCHES "Visual Studio 6") diff --git a/Tests/Wrapping/CMakeLists.txt b/Tests/Wrapping/CMakeLists.txt index 449357707..c84dedc47 100644 --- a/Tests/Wrapping/CMakeLists.txt +++ b/Tests/Wrapping/CMakeLists.txt @@ -1,6 +1,7 @@ # # Wrapping # +cmake_minimum_required (VERSION 2.6) PROJECT (Wrapping) # Disable cleaning of custom command outputs to preserve the hacks diff --git a/Tests/X11/CMakeLists.txt b/Tests/X11/CMakeLists.txt index f0652578f..28b41edc9 100644 --- a/Tests/X11/CMakeLists.txt +++ b/Tests/X11/CMakeLists.txt @@ -1,4 +1,5 @@ # a simple C only test case +cmake_minimum_required (VERSION 2.6) PROJECT (UseX11 C) INCLUDE (${CMAKE_ROOT}/Modules/FindX11.cmake)