summaryrefslogtreecommitdiffstats
path: root/Modules/FindCoin3D.cmake
diff options
context:
space:
mode:
authorKitware Robot <kwrobot@kitware.com>2012-08-13 17:50:14 (GMT)
committerBrad King <brad.king@kitware.com>2012-08-13 18:19:16 (GMT)
commit9db3116226cb99fcf54e936c833953abcde9b729 (patch)
treebd755ed9e616bbf1482a894bc7946980d81b7703 /Modules/FindCoin3D.cmake
parent77543bde41b0e52c3959016698b529835945d62d (diff)
downloadCMake-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/FindCoin3D.cmake')
-rw-r--r--Modules/FindCoin3D.cmake20
1 files changed, 10 insertions, 10 deletions
diff --git a/Modules/FindCoin3D.cmake b/Modules/FindCoin3D.cmake
index 914d74b..bbda87b 100644
--- a/Modules/FindCoin3D.cmake
+++ b/Modules/FindCoin3D.cmake
@@ -28,7 +28,7 @@ if (WIN32)
find_path(COIN3D_INCLUDE_DIRS Inventor/So.h)
find_library(COIN3D_LIBRARIES Coin)
- else (CYGWIN)
+ else ()
find_path(COIN3D_INCLUDE_DIRS Inventor/So.h
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\SIM\\Coin3D\\2;Installation Path]/include"
@@ -45,18 +45,18 @@ if (WIN32)
if (COIN3D_LIBRARY_DEBUG AND COIN3D_LIBRARY_RELEASE)
set(COIN3D_LIBRARIES optimized ${COIN3D_LIBRARY_RELEASE}
debug ${COIN3D_LIBRARY_DEBUG})
- else (COIN3D_LIBRARY_DEBUG AND COIN3D_LIBRARY_RELEASE)
+ else ()
if (COIN3D_LIBRARY_DEBUG)
set (COIN3D_LIBRARIES ${COIN3D_LIBRARY_DEBUG})
- endif (COIN3D_LIBRARY_DEBUG)
+ endif ()
if (COIN3D_LIBRARY_RELEASE)
set (COIN3D_LIBRARIES ${COIN3D_LIBRARY_RELEASE})
- endif (COIN3D_LIBRARY_RELEASE)
- endif (COIN3D_LIBRARY_DEBUG AND COIN3D_LIBRARY_RELEASE)
+ endif ()
+ endif ()
- endif (CYGWIN)
+ endif ()
-else (WIN32)
+else ()
if(APPLE)
find_path(COIN3D_INCLUDE_DIRS Inventor/So.h
/Library/Frameworks/Inventor.framework/Headers
@@ -65,14 +65,14 @@ else (WIN32)
/Library/Frameworks/Inventor.framework/Libraries
)
set(COIN3D_LIBRARIES "-framework Coin3d" CACHE STRING "Coin3D library for OSX")
- else(APPLE)
+ else()
find_path(COIN3D_INCLUDE_DIRS Inventor/So.h)
find_library(COIN3D_LIBRARIES Coin)
- endif(APPLE)
+ endif()
-endif (WIN32)
+endif ()
# handle the QUIETLY and REQUIRED arguments and set COIN3D_FOUND to TRUE if
# all listed variables are TRUE