ENH: preclean some warnings

This commit is contained in:
Ken Martin 2008-03-25 11:27:18 -04:00
parent 5905d79c8a
commit ce8810c4e7
70 changed files with 72 additions and 2 deletions

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
project(Assembler) project(Assembler)
set(SRCS) set(SRCS)

View File

@ -4,6 +4,7 @@
# are working the executable should relink with the new # are working the executable should relink with the new
# value. The subdir Project contains the CMakelists.txt # value. The subdir Project contains the CMakelists.txt
# and source files for the test project. # and source files for the test project.
cmake_minimum_required (VERSION 2.6)
project(BuildDepends) project(BuildDepends)
# This entire test takes place during the initial # This entire test takes place during the initial

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT(BundleTest) PROJECT(BundleTest)
SET(MACOSX_BUNDLE_INFO_STRING "bundle_info_string") SET(MACOSX_BUNDLE_INFO_STRING "bundle_info_string")
SET(CMAKE_MacOSX_Content_COMPILE_OBJECT "\"${CMAKE_COMMAND}\" -E copy_if_different <SOURCE> <OBJECT>") SET(CMAKE_MacOSX_Content_COMPILE_OBJECT "\"${CMAKE_COMMAND}\" -E copy_if_different <SOURCE> <OBJECT>")

View File

@ -1,4 +1,5 @@
# a simple C only test case # a simple C only test case
cmake_minimum_required (VERSION 2.6)
project (COnly C) project (COnly C)
set(CMAKE_DEBUG_POSTFIX "_test_debug_postfix") set(CMAKE_DEBUG_POSTFIX "_test_debug_postfix")

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT(CTestTest) PROJECT(CTestTest)
SET(DART_ROOT "" CACHE STRING "" FORCE) SET(DART_ROOT "" CACHE STRING "" FORCE)

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT(CTestTest2) PROJECT(CTestTest2)
SET(DART_ROOT "" CACHE STRING "" FORCE) SET(DART_ROOT "" CACHE STRING "" FORCE)

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT(CommandLineTest) PROJECT(CommandLineTest)
GET_FILENAME_COMPONENT(CMAKE_BIN_DIR ${CMAKE_COMMAND} PATH) GET_FILENAME_COMPONENT(CMAKE_BIN_DIR ${CMAKE_COMMAND} PATH)

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
project(ConvLibrary) project(ConvLibrary)
# create a source list # create a source list

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
project(CustComDepend) project(CustComDepend)
include_directories("${CustComDepend_SOURCE_DIR}") include_directories("${CustComDepend_SOURCE_DIR}")
add_definitions(-D_CRT_SECURE_NO_DEPRECATE=1) add_definitions(-D_CRT_SECURE_NO_DEPRECATE=1)

View File

@ -1,6 +1,7 @@
# #
# Wrapping # Wrapping
# #
cmake_minimum_required (VERSION 2.6)
PROJECT (CustomCommand) PROJECT (CustomCommand)
ADD_SUBDIRECTORY(GeneratedHeader) ADD_SUBDIRECTORY(GeneratedHeader)

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT(TestWorkingDir) PROJECT(TestWorkingDir)
ADD_CUSTOM_COMMAND( ADD_CUSTOM_COMMAND(

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT( Dependency ) PROJECT( Dependency )
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_ANSI_CFLAGS}") SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_ANSI_CFLAGS}")

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
project (DocTest) project (DocTest)
add_executable (DocTest DocTest.cxx) add_executable (DocTest DocTest.cxx)

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
project(ExportImport C) project(ExportImport C)
# Wipe out the install tree to make sure the exporter works. # Wipe out the install tree to make sure the exporter works.

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
project(Export C) project(Export C)
# We need ansi C support. # We need ansi C support.

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
project(Import C) project(Import C)
# We need ansi C support. # We need ansi C support.

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT (ExternalOBJ) PROJECT (ExternalOBJ)
IF(APPLE) IF(APPLE)

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT(Object) PROJECT(Object)
IF(APPLE) IF(APPLE)
# set _CMAKE_OSX_MACHINE to umame -m # set _CMAKE_OSX_MACHINE to umame -m

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT(FindPackageTest) PROJECT(FindPackageTest)
# Look for a package that has a find module and may be found. # Look for a package that has a find module and may be found.

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT(testf Fortran) PROJECT(testf Fortran)
SET(CMAKE_VERBOSE_MAKEFILE 1) SET(CMAKE_VERBOSE_MAKEFILE 1)
MESSAGE("ENV_FLAGS = $ENV{FFLAGS}") MESSAGE("ENV_FLAGS = $ENV{FFLAGS}")

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
project(Framework) project(Framework)
add_library(foo SHARED add_library(foo SHARED

View File

@ -1,4 +1,5 @@
# a simple C only test case # a simple C only test case
cmake_minimum_required (VERSION 2.6)
PROJECT (FunctionTest) PROJECT (FunctionTest)
SET(CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS}") SET(CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS}")

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT(hello Java) PROJECT(hello Java)
SET(CMAKE_VERBOSE_MAKEFILE 1) SET(CMAKE_VERBOSE_MAKEFILE 1)

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT(Jump) PROJECT(Jump)
SET(CMAKE_IGNORE_DEPENDENCIES_ORDERING 1) SET(CMAKE_IGNORE_DEPENDENCIES_ORDERING 1)

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT(CMAKE_LOADED_COMMANDS) PROJECT(CMAKE_LOADED_COMMANDS)
IF (MUDSLIDE_TYPE MATCHES MUCHO) IF (MUDSLIDE_TYPE MATCHES MUCHO)

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT(LoadCommand) PROJECT(LoadCommand)
# set a definition # set a definition

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT(CMAKE_LOADED_COMMANDS) PROJECT(CMAKE_LOADED_COMMANDS)
IF (MUDSLIDE_TYPE MATCHES MUCHO) IF (MUDSLIDE_TYPE MATCHES MUCHO)

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT(LoadCommand) PROJECT(LoadCommand)
# set a definition # set a definition

View File

@ -1,4 +1,5 @@
# a simple C only test case # a simple C only test case
cmake_minimum_required (VERSION 2.6)
PROJECT (MacroTest) PROJECT (MacroTest)
SET(CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS}") SET(CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS}")

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT(MakeClean) PROJECT(MakeClean)
SET(CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS}") SET(CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS}")

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT(MathTest) PROJECT(MathTest)

View File

@ -1,4 +1,5 @@
# a simple CXX only test case # a simple CXX only test case
cmake_minimum_required (VERSION 2.6)
project (NewlineArgs CXX) project (NewlineArgs CXX)
add_definitions("-DTEST_FLAG_1 add_definitions("-DTEST_FLAG_1

View File

@ -1,4 +1,5 @@
# a simple test cas # a simple test cas
cmake_minimum_required (VERSION 2.6)
project (OutOfSource) project (OutOfSource)
add_subdirectory(SubDir) add_subdirectory(SubDir)

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT(Plugin) PROJECT(Plugin)
# Test per-target output directory properties. # Test per-target output directory properties.

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT(PrecompiledHeader C) PROJECT(PrecompiledHeader C)
# Make sure the proper compiler is in use. # Make sure the proper compiler is in use.

View File

@ -1,4 +1,5 @@
# a simple CXX only test case # a simple CXX only test case
cmake_minimum_required (VERSION 2.6)
project (Properties) project (Properties)
# these first three tests really test both properties and the management of # these first three tests really test both properties and the management of

View File

@ -1,4 +1,5 @@
# a simple C only test case # a simple C only test case
cmake_minimum_required (VERSION 2.6)
project (ReturnTest) project (ReturnTest)
set (CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS}") set (CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS}")

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
project(RuntimePath C) project(RuntimePath C)
if(CMAKE_ANSI_CFLAGS) if(CMAKE_ANSI_CFLAGS)

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT(SameName C) PROJECT(SameName C)
ADD_SUBDIRECTORY(Lib1) ADD_SUBDIRECTORY(Lib1)

View File

@ -1,4 +1,5 @@
# test forcing a source file language to c++ from c # test forcing a source file language to c++ from c
cmake_minimum_required (VERSION 2.6)
project(SetLang) project(SetLang)
# force this to be verbose so I can debug a dashboard entry # force this to be verbose so I can debug a dashboard entry
SET(CMAKE_VERBOSE_MAKEFILE 1) SET(CMAKE_VERBOSE_MAKEFILE 1)

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
project(SimpleExclude C) project(SimpleExclude C)
set(EXECUTABLE_OUTPUT_PATH "${SimpleExclude_BINARY_DIR}" CACHE INTERNAL "" FORCE) set(EXECUTABLE_OUTPUT_PATH "${SimpleExclude_BINARY_DIR}" CACHE INTERNAL "" FORCE)

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT (TestSimpleInstall) PROJECT (TestSimpleInstall)
SET(CMAKE_VERBOSE_MAKEFILE 1) SET(CMAKE_VERBOSE_MAKEFILE 1)
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT (TestSimpleInstall) PROJECT (TestSimpleInstall)
SET(CMAKE_VERBOSE_MAKEFILE 1) SET(CMAKE_VERBOSE_MAKEFILE 1)
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
project(SourceGroups) project(SourceGroups)
# We need ansi C support, otherwise it doesn't build e.g. on HP-UX: # We need ansi C support, otherwise it doesn't build e.g. on HP-UX:

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT(StringFileTest) PROJECT(StringFileTest)
INCLUDE_DIRECTORIES(${StringFileTest_BINARY_DIR}) INCLUDE_DIRECTORIES(${StringFileTest_BINARY_DIR})
@ -100,7 +101,7 @@ STRING(STRIP "
ST1 ST1
" ST1) " ST1)
STRING(STRIP "ST2 " ST2) STRING(STRIP "ST2 " ST2)
STRING(STRIP " ST3" ST3) STRING(STRIP " ST3" ST3)
FOREACH(var ST1 ST2 ST3) FOREACH(var ST1 ST2 ST3)
IF("${var}" STREQUAL "${${var}}") IF("${var}" STREQUAL "${${var}}")

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT(SUBDIR) PROJECT(SUBDIR)
SUBDIRS(Executable EXCLUDE_FROM_ALL Examples) SUBDIRS(Executable EXCLUDE_FROM_ALL Examples)
WRITE_FILE(${SUBDIR_BINARY_DIR}/ShouldBeHere "This file should exist.") WRITE_FILE(${SUBDIR_BINARY_DIR}/ShouldBeHere "This file should exist.")

View File

@ -1,2 +1,3 @@
cmake_minimum_required (VERSION 2.6)
PROJECT(Examples) PROJECT(Examples)
SUBDIRS(example1 example2) SUBDIRS(example1 example2)

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT(example1) PROJECT(example1)
ADD_EXECUTABLE(example1 example1.cxx) ADD_EXECUTABLE(example1 example1.cxx)

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT(SUBDIR) PROJECT(SUBDIR)
# Some systems do not seem to support rpath with spaces. # Some systems do not seem to support rpath with spaces.

View File

@ -1,2 +1,3 @@
cmake_minimum_required (VERSION 2.6)
PROJECT(Examples) PROJECT(Examples)
SUBDIRS(example1 example2) SUBDIRS(example1 example2)

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT(example1) PROJECT(example1)
ADD_EXECUTABLE(example1 example1.cxx) ADD_EXECUTABLE(example1 example1.cxx)

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
project(SubProject) project(SubProject)
message("${CMAKE_IMPORT_LIBRARY_SUFFIX}") message("${CMAKE_IMPORT_LIBRARY_SUFFIX}")
add_library(bar bar.cxx) add_library(bar bar.cxx)

View File

@ -1,5 +1,6 @@
SET(language "python") SET(language "python")
cmake_minimum_required (VERSION 2.6)
PROJECT(example_${language}_class) PROJECT(example_${language}_class)

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT(SystemInformation) PROJECT(SystemInformation)
INCLUDE_DIRECTORIES("This does not exists") INCLUDE_DIRECTORIES("This does not exists")

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT(TarTest) PROJECT(TarTest)
# this is macro that we will be running # this is macro that we will be running

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
project(TargetName) project(TargetName)
add_subdirectory(executables) add_subdirectory(executables)

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT(TestDriverTest) PROJECT(TestDriverTest)
SET(Extra_SRCS testExtraStuff.cxx testExtraStuff2.cxx ) SET(Extra_SRCS testExtraStuff.cxx testExtraStuff2.cxx )
@ -7,7 +8,7 @@ CREATE_TEST_SOURCELIST(testSrcs
TestDriverTest.cxx TestDriverTest.cxx
test1.cxx test1.cxx
test2.cxx test2.cxx
subdir/test3.cxx subdir/test3.cxx
EXTRA_INCLUDE testArgs.h FUNCTION testProccessArgs) EXTRA_INCLUDE testArgs.h FUNCTION testProccessArgs)
ADD_EXECUTABLE(TestDriverTest ${testSrcs} ${Extra_SRCS}) ADD_EXECUTABLE(TestDriverTest ${testSrcs} ${Extra_SRCS})

View File

@ -1,6 +1,7 @@
# #
# Testing # Testing
# #
cmake_minimum_required (VERSION 2.6)
PROJECT (Testing) PROJECT (Testing)
# #

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT(TryCompile) PROJECT(TryCompile)
MACRO(TEST_ASSERT value msg) MACRO(TEST_ASSERT value msg)

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
project (Tutorial) project (Tutorial)
# The version number. # The version number.

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
project (Tutorial) project (Tutorial)
# The version number. # The version number.

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
project (Tutorial) project (Tutorial)
# The version number. # The version number.

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
project (Tutorial) project (Tutorial)
# The version number. # The version number.

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
project (Tutorial) project (Tutorial)
# The version number. # The version number.

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
project (Tutorial) project (Tutorial)
# The version number. # The version number.

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
project (Tutorial) project (Tutorial)
# The version number. # The version number.

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT (UsewxWidgets) PROJECT (UsewxWidgets)
FIND_PACKAGE(wxWidgets REQUIRED) FIND_PACKAGE(wxWidgets REQUIRED)

View File

@ -1,3 +1,4 @@
cmake_minimum_required (VERSION 2.6)
PROJECT(VSExternalInclude) PROJECT(VSExternalInclude)
IF(${CMAKE_GENERATOR} MATCHES "Visual Studio 6") IF(${CMAKE_GENERATOR} MATCHES "Visual Studio 6")

View File

@ -1,6 +1,7 @@
# #
# Wrapping # Wrapping
# #
cmake_minimum_required (VERSION 2.6)
PROJECT (Wrapping) PROJECT (Wrapping)
# Disable cleaning of custom command outputs to preserve the hacks # Disable cleaning of custom command outputs to preserve the hacks

View File

@ -1,4 +1,5 @@
# a simple C only test case # a simple C only test case
cmake_minimum_required (VERSION 2.6)
PROJECT (UseX11 C) PROJECT (UseX11 C)
INCLUDE (${CMAKE_ROOT}/Modules/FindX11.cmake) INCLUDE (${CMAKE_ROOT}/Modules/FindX11.cmake)