[Cmake-commits] [cmake-commits] hoffman committed CMakeLists.txt 1.1.2.2 1.1.2.3 intentional_compile_error.cxx NONE 1.1.2.2 intentional_compile_warning.cxx NONE 1.1.2.2

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Oct 28 12:16:27 EDT 2009


Update of /cvsroot/CMake/CMake/Tests/CTestTest/SmallAndFast
In directory public:/mounts/ram/cvs-serv18987/Tests/CTestTest/SmallAndFast

Modified Files:
      Tag: CMake-2-8
	CMakeLists.txt 
Added Files:
      Tag: CMake-2-8
	intentional_compile_error.cxx intentional_compile_warning.cxx 
Log Message:
RC 4 merge


--- NEW FILE: intentional_compile_warning.cxx ---
#include <stdio.h>

int main(int argc, const char* argv[])
{
  unsigned int i = 0; // "i<argc" should produce a "signed/unsigned comparison" warning
  for (; i<argc; ++i)
  {
    fprintf(stdout, "%s\n", argv[i]);
  }
  return 0;
}

Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/CTestTest/SmallAndFast/CMakeLists.txt,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -C 2 -d -r1.1.2.2 -r1.1.2.3
*** CMakeLists.txt	9 Oct 2009 20:11:44 -0000	1.1.2.2
--- CMakeLists.txt	28 Oct 2009 16:16:15 -0000	1.1.2.3
***************
*** 5,10 ****
--- 5,25 ----
  
  add_executable(echoargs echoargs.c)
+ set_property(SOURCE echoargs.c APPEND PROPERTY LABELS SourceLabel Everything)
+ set_property(TARGET echoargs APPEND PROPERTY LABELS TargetLabel Everything)
  
  add_test(test0 echoargs)
+ set_property(TEST test0 APPEND PROPERTY LABELS TestLabel 0ArgTest Everything)
+ 
  add_test(test1 echoargs 1)
+ set_property(TEST test1 APPEND PROPERTY LABELS TestLabel 1ArgTest Everything)
+ 
  add_test(test2 echoargs 1 2)
+ set_property(TEST test2 APPEND PROPERTY LABELS TestLabel 2ArgTest Everything)
+ 
+ if(SAF_INTENTIONAL_COMPILE_ERROR)
+   add_executable(ice intentional_compile_error.cxx)
+ endif()
+ 
+ if(SAF_INTENTIONAL_COMPILE_WARNING)
+   add_executable(icw intentional_compile_warning.cxx)
+ endif()

--- NEW FILE: intentional_compile_error.cxx ---
garbage - obviously this should not compile as is



More information about the Cmake-commits mailing list