summaryrefslogtreecommitdiffstats
path: root/Modules/FindCoin3D.cmake
diff options
context:
space:
mode:
authorKitware Robot <kwrobot@kitware.com>2012-08-13 17:47:32 (GMT)
committerBrad King <brad.king@kitware.com>2012-08-13 18:19:16 (GMT)
commit77543bde41b0e52c3959016698b529835945d62d (patch)
treeff63e5fbec326c4a5d821e7496c6d2cb52f75b92 /Modules/FindCoin3D.cmake
parent7bbaa4283de26864b2e55e819db0884771585467 (diff)
downloadCMake-77543bde41b0e52c3959016698b529835945d62d.zip
CMake-77543bde41b0e52c3959016698b529835945d62d.tar.gz
CMake-77543bde41b0e52c3959016698b529835945d62d.tar.bz2
Convert CMake-language commands to lower case
Ancient CMake versions required upper-case commands. Later command names became case-insensitive. Now the preferred style is lower-case. Run the following shell code: cmake --help-command-list | grep -v "cmake version" | while read c; do echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | xargs -0 sed -i -f convert.sed && rm convert.sed
Diffstat (limited to 'Modules/FindCoin3D.cmake')
-rw-r--r--Modules/FindCoin3D.cmake66
1 files changed, 33 insertions, 33 deletions
diff --git a/Modules/FindCoin3D.cmake b/Modules/FindCoin3D.cmake
index 2b4c914..914d74b 100644
--- a/Modules/FindCoin3D.cmake
+++ b/Modules/FindCoin3D.cmake
@@ -22,63 +22,63 @@
# (To distribute this file outside of CMake, substitute the full
# License text for the above reference.)
-IF (WIN32)
- IF (CYGWIN)
+if (WIN32)
+ if (CYGWIN)
- FIND_PATH(COIN3D_INCLUDE_DIRS Inventor/So.h)
- FIND_LIBRARY(COIN3D_LIBRARIES Coin)
+ find_path(COIN3D_INCLUDE_DIRS Inventor/So.h)
+ find_library(COIN3D_LIBRARIES Coin)
- ELSE (CYGWIN)
+ else (CYGWIN)
- FIND_PATH(COIN3D_INCLUDE_DIRS Inventor/So.h
+ find_path(COIN3D_INCLUDE_DIRS Inventor/So.h
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\SIM\\Coin3D\\2;Installation Path]/include"
)
- FIND_LIBRARY(COIN3D_LIBRARY_DEBUG coin2d
+ find_library(COIN3D_LIBRARY_DEBUG coin2d
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\SIM\\Coin3D\\2;Installation Path]/lib"
)
- FIND_LIBRARY(COIN3D_LIBRARY_RELEASE coin2
+ find_library(COIN3D_LIBRARY_RELEASE coin2
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\SIM\\Coin3D\\2;Installation Path]/lib"
)
- IF (COIN3D_LIBRARY_DEBUG AND COIN3D_LIBRARY_RELEASE)
- SET(COIN3D_LIBRARIES optimized ${COIN3D_LIBRARY_RELEASE}
+ 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)
- IF (COIN3D_LIBRARY_DEBUG)
- SET (COIN3D_LIBRARIES ${COIN3D_LIBRARY_DEBUG})
- ENDIF (COIN3D_LIBRARY_DEBUG)
- IF (COIN3D_LIBRARY_RELEASE)
- SET (COIN3D_LIBRARIES ${COIN3D_LIBRARY_RELEASE})
- ENDIF (COIN3D_LIBRARY_RELEASE)
- ENDIF (COIN3D_LIBRARY_DEBUG AND COIN3D_LIBRARY_RELEASE)
-
- ENDIF (CYGWIN)
-
-ELSE (WIN32)
- IF(APPLE)
- FIND_PATH(COIN3D_INCLUDE_DIRS Inventor/So.h
+ else (COIN3D_LIBRARY_DEBUG AND COIN3D_LIBRARY_RELEASE)
+ if (COIN3D_LIBRARY_DEBUG)
+ set (COIN3D_LIBRARIES ${COIN3D_LIBRARY_DEBUG})
+ endif (COIN3D_LIBRARY_DEBUG)
+ if (COIN3D_LIBRARY_RELEASE)
+ set (COIN3D_LIBRARIES ${COIN3D_LIBRARY_RELEASE})
+ endif (COIN3D_LIBRARY_RELEASE)
+ endif (COIN3D_LIBRARY_DEBUG AND COIN3D_LIBRARY_RELEASE)
+
+ endif (CYGWIN)
+
+else (WIN32)
+ if(APPLE)
+ find_path(COIN3D_INCLUDE_DIRS Inventor/So.h
/Library/Frameworks/Inventor.framework/Headers
)
- FIND_LIBRARY(COIN3D_LIBRARIES Coin
+ find_library(COIN3D_LIBRARIES Coin
/Library/Frameworks/Inventor.framework/Libraries
)
- SET(COIN3D_LIBRARIES "-framework Coin3d" CACHE STRING "Coin3D library for OSX")
- ELSE(APPLE)
+ set(COIN3D_LIBRARIES "-framework Coin3d" CACHE STRING "Coin3D library for OSX")
+ else(APPLE)
- FIND_PATH(COIN3D_INCLUDE_DIRS Inventor/So.h)
- FIND_LIBRARY(COIN3D_LIBRARIES Coin)
+ find_path(COIN3D_INCLUDE_DIRS Inventor/So.h)
+ find_library(COIN3D_LIBRARIES Coin)
- ENDIF(APPLE)
+ endif(APPLE)
-ENDIF (WIN32)
+endif (WIN32)
# handle the QUIETLY and REQUIRED arguments and set COIN3D_FOUND to TRUE if
# all listed variables are TRUE
-INCLUDE(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
+include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Coin3D DEFAULT_MSG COIN3D_LIBRARIES COIN3D_INCLUDE_DIRS)
-MARK_AS_ADVANCED(COIN3D_INCLUDE_DIRS COIN3D_LIBRARIES )
+mark_as_advanced(COIN3D_INCLUDE_DIRS COIN3D_LIBRARIES )