From 9db3116226cb99fcf54e936c833953abcde9b729 Mon Sep 17 00:00:00 2001 From: Kitware Robot Date: Mon, 13 Aug 2012 13:50:14 -0400 Subject: 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 --- Modules/Use_wxWindows.cmake | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Modules/Use_wxWindows.cmake') diff --git a/Modules/Use_wxWindows.cmake b/Modules/Use_wxWindows.cmake index 681fe28e36..6c95681e22 100644 --- a/Modules/Use_wxWindows.cmake +++ b/Modules/Use_wxWindows.cmake @@ -45,20 +45,20 @@ if(WXWINDOWS_FOUND) if(WXWINDOWS_INCLUDE_DIR) include_directories(${WXWINDOWS_INCLUDE_DIR}) - endif(WXWINDOWS_INCLUDE_DIR) + endif() if(WXWINDOWS_LINK_DIRECTORIES) link_directories(${WXWINDOWS_LINK_DIRECTORIES}) - endif(WXWINDOWS_LINK_DIRECTORIES) + endif() if(WXWINDOWS_LIBRARIES) link_libraries(${WXWINDOWS_LIBRARIES}) - endif(WXWINDOWS_LIBRARIES) + endif() if (CMAKE_WXWINDOWS_CXX_FLAGS) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_WXWINDOWS_CXX_FLAGS}") - endif(CMAKE_WXWINDOWS_CXX_FLAGS) + endif() if(WXWINDOWS_DEFINITIONS) add_definitions(${WXWINDOWS_DEFINITIONS}) - endif(WXWINDOWS_DEFINITIONS) -else(WXWINDOWS_FOUND) + endif() +else() message(SEND_ERROR "wxWindows not found by Use_wxWindows.cmake") -endif(WXWINDOWS_FOUND) +endif() -- cgit v1.2.1