diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-08-28 14:59:08 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-08-28 14:59:08 (GMT) |
commit | 5615d4719833a672427b4792594aa55f3bf4a950 (patch) | |
tree | b0344318a900b878ee5d7a00fb2ded8871e09256 /Tests/SourceGroups/CMakeLists.txt | |
parent | bd8b733d5e3df7ae584090d4558b1617489eae8b (diff) | |
download | CMake-5615d4719833a672427b4792594aa55f3bf4a950.zip CMake-5615d4719833a672427b4792594aa55f3bf4a950.tar.gz CMake-5615d4719833a672427b4792594aa55f3bf4a950.tar.bz2 |
COMP: enable ANSI C, this should make it work with the HP-UX compiler
Alex
Diffstat (limited to 'Tests/SourceGroups/CMakeLists.txt')
-rw-r--r-- | Tests/SourceGroups/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/SourceGroups/CMakeLists.txt b/Tests/SourceGroups/CMakeLists.txt index b0b2405..30f6663 100644 --- a/Tests/SourceGroups/CMakeLists.txt +++ b/Tests/SourceGroups/CMakeLists.txt @@ -1,5 +1,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() # commands. |