diff options
author | Brad King <brad.king@kitware.com> | 2008-02-11 20:31:32 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-02-11 20:31:32 (GMT) |
commit | 5a834b0bb0bc2889bb67bdaac37ce9b17d4f0f59 (patch) | |
tree | 50b81f2e655f6a7e9812f00d3a4bb7431f44cfef /Modules | |
parent | ac0e58dcfbf17dec84b7bd848f6df0175f7d516b (diff) | |
download | CMake-5a834b0bb0bc2889bb67bdaac37ce9b17d4f0f59.zip CMake-5a834b0bb0bc2889bb67bdaac37ce9b17d4f0f59.tar.gz CMake-5a834b0bb0bc2889bb67bdaac37ce9b17d4f0f59.tar.bz2 |
ENH: Remove CMAKE_ANSI_CFLAGS variable and instead always add ansi flags to CMAKE_C_COMPILE_OBJECT. We should not require every project to reference CMAKE_ANSI_CFLAGS.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Platform/HP-UX.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/Platform/HP-UX.cmake b/Modules/Platform/HP-UX.cmake index 8f0fce8..a6bb79e 100644 --- a/Modules/Platform/HP-UX.cmake +++ b/Modules/Platform/HP-UX.cmake @@ -42,7 +42,6 @@ IF(CMAKE_COMPILER_IS_GNUCC) SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC") # -pic ELSE(CMAKE_COMPILER_IS_GNUCC) # hp cc - SET(CMAKE_ANSI_CFLAGS "-Aa -Ae") # use ld directly to create shared libraries for hp cc SET(CMAKE_C_CREATE_SHARED_LIBRARY "ld <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> <CMAKE_SHARED_LIBRARY_SONAME_C_FLAG><TARGET_SONAME> <LINK_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>") @@ -53,6 +52,9 @@ ELSE(CMAKE_COMPILER_IS_GNUCC) SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":") # : or empty SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "+h") SET(CMAKE_EXECUTABLE_RUNTIME_C_FLAG "-Wl,+b") # -rpath + SET(CMAKE_C_FLAGS_INIT "") + SET(CMAKE_C_COMPILE_OBJECT + "<CMAKE_C_COMPILER> <DEFINES> -Aa -Ae <FLAGS> -o <OBJECT> -c <SOURCE>") ENDIF(CMAKE_COMPILER_IS_GNUCC) # CXX compiler @@ -79,7 +81,6 @@ ELSE(CMAKE_COMPILER_IS_GNUCXX) SET (CMAKE_CXX_FLAGS_MINSIZEREL_INIT "+O3 -DNDEBUG") SET (CMAKE_CXX_FLAGS_RELEASE_INIT "+O2 -DNDEBUG") SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-g") - SET (CMAKE_C_FLAGS_INIT "") ENDIF(CMAKE_COMPILER_IS_GNUCXX) # set flags for gcc support INCLUDE(Platform/UnixPaths) |