9db3116226
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
29 lines
988 B
CMake
29 lines
988 B
CMake
|
|
#=============================================================================
|
|
# Copyright 2001-2009 Kitware, Inc.
|
|
#
|
|
# Distributed under the OSI-approved BSD License (the "License");
|
|
# see accompanying file Copyright.txt for details.
|
|
#
|
|
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
# See the License for more information.
|
|
#=============================================================================
|
|
# (To distribute this file outside of CMake, substitute the full
|
|
# License text for the above reference.)
|
|
|
|
# Use of this file is deprecated, and is here for backwards compatibility with CMake 1.4
|
|
# GLU library is now found by FindOpenGL.cmake
|
|
#
|
|
|
|
message(STATUS
|
|
"WARNING: you are using the obsolete 'GLU' package, please use 'OpenGL' instead")
|
|
|
|
include(FindOpenGL)
|
|
|
|
if (OPENGL_GLU_FOUND)
|
|
set (GLU_LIBRARY ${OPENGL_LIBRARIES})
|
|
set (GLU_INCLUDE_PATH ${OPENGL_INCLUDE_DIR})
|
|
endif ()
|
|
|