diff options
author | Kitware Robot <kwrobot@kitware.com> | 2012-08-13 17:50:14 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-08-13 18:19:16 (GMT) |
commit | 9db3116226cb99fcf54e936c833953abcde9b729 (patch) | |
tree | bd755ed9e616bbf1482a894bc7946980d81b7703 /Modules/Platform/OSF1.cmake | |
parent | 77543bde41b0e52c3959016698b529835945d62d (diff) | |
download | CMake-9db3116226cb99fcf54e936c833953abcde9b729.zip CMake-9db3116226cb99fcf54e936c833953abcde9b729.tar.gz CMake-9db3116226cb99fcf54e936c833953abcde9b729.tar.bz2 |
Remove CMake-language block-end command arguments
Ancient versions of CMake required else(), endif(), and similar block
termination commands to have arguments matching the command starting the
block. This is no longer the preferred style.
Run the following shell code:
for c in else endif endforeach endfunction endmacro endwhile; do
echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/'
done >convert.sed &&
git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' |
egrep -z -v '^(Utilities/cm|Source/kwsys/)' |
egrep -z -v 'Tests/CMakeTests/While-Endwhile-' |
xargs -0 sed -i -f convert.sed &&
rm convert.sed
Diffstat (limited to 'Modules/Platform/OSF1.cmake')
-rw-r--r-- | Modules/Platform/OSF1.cmake | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Modules/Platform/OSF1.cmake b/Modules/Platform/OSF1.cmake index e720e40..9c3255e 100644 --- a/Modules/Platform/OSF1.cmake +++ b/Modules/Platform/OSF1.cmake @@ -1,14 +1,14 @@ set(CMAKE_DL_LIBS "") if(CMAKE_SYSTEM MATCHES "OSF1-1.[012]") -endif(CMAKE_SYSTEM MATCHES "OSF1-1.[012]") +endif() if(CMAKE_SYSTEM MATCHES "OSF1-1.*") # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2 set(CMAKE_C_COMPILE_OPTIONS_PIC "-fpic") set(CMAKE_C_COMPILE_OPTIONS_PIE "-fpie") set(CMAKE_SHARED_LIBRARY_C_FLAGS "-fpic") # -pic set(CMAKE_SHARED_LIBRARY_CXX_FLAGS "-fpic") # -pic -endif(CMAKE_SYSTEM MATCHES "OSF1-1.*") +endif() @@ -16,22 +16,22 @@ if(CMAKE_SYSTEM MATCHES "OSF1-V.*") set(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared -Wl,-expect_unresolved,\\*") # -shared if(CMAKE_COMPILER_IS_GNUCXX) set(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG "-Wl,-rpath,") - else(CMAKE_COMPILER_IS_GNUCXX) + else() set(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG "-rpath ") - endif(CMAKE_COMPILER_IS_GNUCXX) + endif() if(CMAKE_COMPILER_IS_GNUCC) set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,") - else(CMAKE_COMPILER_IS_GNUCC) + else() set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-rpath ") - endif(CMAKE_COMPILER_IS_GNUCC) + endif() set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":") -endif(CMAKE_SYSTEM MATCHES "OSF1-V.*") +endif() set(CMAKE_MAKE_INCLUDE_FROM_ROOT 1) # include $(CMAKE_BINARY_DIR)/... if(CMAKE_COMPILER_IS_GNUCXX) # include the gcc flags -else (CMAKE_COMPILER_IS_GNUCXX) +else () # use default OSF compiler flags set (CMAKE_C_FLAGS_INIT "") set (CMAKE_C_FLAGS_DEBUG_INIT "-g") @@ -43,5 +43,5 @@ else (CMAKE_COMPILER_IS_GNUCXX) set (CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-O2 -DNDEBUG") set (CMAKE_CXX_FLAGS_RELEASE_INIT "-O2 -DNDEBUG") set (CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-O2") -endif(CMAKE_COMPILER_IS_GNUCXX) +endif() include(Platform/UnixPaths) |