[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.5 1.6

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Jul 8 11:41:52 EDT 2009


Update of /cvsroot/CMake/CMake/Tests/SourceGroups
In directory public:/mounts/ram/cvs-serv23655/Tests/SourceGroups

Modified Files:
	CMakeLists.txt 
Log Message:
ENH: Remove CMAKE_ANSI_CFLAGS from tests

As of CMake 2.6 this variable is not defined, and the ANSI flags for the
HP compiler are simply hard-coded in the default C flags.


Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/SourceGroups/CMakeLists.txt,v
retrieving revision 1.5
retrieving revision 1.6
diff -C 2 -d -r1.5 -r1.6
*** CMakeLists.txt	25 Mar 2008 15:27:06 -0000	1.5
--- CMakeLists.txt	8 Jul 2009 15:41:48 -0000	1.6
***************
*** 2,12 ****
  project(SourceGroups)
  
- # We need ansi C support, otherwise it doesn't build e.g. on HP-UX:
- # main.c", line 3: error 1705: Function prototypes are an ANSI feature.
- IF(CMAKE_ANSI_CFLAGS)
-   SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_ANSI_CFLAGS}")
- ENDIF(CMAKE_ANSI_CFLAGS)
- 
- 
  # this is not really a test which can fail
  # it is more an example with several source_group() 
--- 2,5 ----



More information about the Cmake-commits mailing list