mirror of
https://github.com/reactos/CMake.git
synced 2024-12-05 02:06:34 +00:00
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
53 lines
2.1 KiB
CMake
53 lines
2.1 KiB
CMake
|
|
#=============================================================================
|
|
# Copyright 2005-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.)
|
|
|
|
if(APPLE)
|
|
set(CMAKE_CXX_CREATE_SHARED_LIBRARY "${CMAKE_C_CREATE_SHARED_LIBRARY}")
|
|
set(CMAKE_CXX_CREATE_SHARED_MODULE "${CMAKE_C_CREATE_SHARED_MODULE}")
|
|
string( REGEX REPLACE "CMAKE_C_COMPILER"
|
|
CMAKE_CXX_COMPILER CMAKE_CXX_CREATE_SHARED_MODULE
|
|
"${CMAKE_CXX_CREATE_SHARED_MODULE}")
|
|
string( REGEX REPLACE "CMAKE_C_COMPILER"
|
|
CMAKE_CXX_COMPILER CMAKE_CXX_CREATE_SHARED_LIBRARY
|
|
"${CMAKE_CXX_CREATE_SHARED_LIBRARY}")
|
|
endif()
|
|
|
|
set(VTKFTGL_BINARY_DIR "${VTK_BINARY_DIR}/Utilities/ftgl"
|
|
CACHE INTERNAL "")
|
|
set(VTKFREETYPE_BINARY_DIR "${VTK_BINARY_DIR}/Utilities/freetype"
|
|
CACHE INTERNAL "")
|
|
set(VTKFTGL_SOURCE_DIR "${VTK_SOURCE_DIR}/Utilities/ftgl"
|
|
CACHE INTERNAL "")
|
|
set(VTKFREETYPE_SOURCE_DIR "${VTK_SOURCE_DIR}/Utilities/freetype"
|
|
CACHE INTERNAL "")
|
|
|
|
set(VTK_GLEXT_FILE "${VTK_SOURCE_DIR}/Utilities/ParseOGLExt/headers/glext.h"
|
|
CACHE FILEPATH
|
|
"Location of the OpenGL extensions header file (glext.h).")
|
|
set(VTK_GLXEXT_FILE
|
|
"${VTK_SOURCE_DIR}/Utilities/ParseOGLExt/headers/glxext.h" CACHE FILEPATH
|
|
"Location of the GLX extensions header file (glxext.h).")
|
|
set(VTK_WGLEXT_FILE "${VTK_SOURCE_DIR}/Utilities/ParseOGLExt/headers/wglext.h"
|
|
CACHE FILEPATH
|
|
"Location of the WGL extensions header file (wglext.h).")
|
|
|
|
# work around an old bug in VTK
|
|
set(TIFF_RIGHT_VERSION 1)
|
|
|
|
# for very old VTK (versions prior to 4.2)
|
|
macro(SOURCE_FILES)
|
|
message (FATAL_ERROR "You are trying to build a very old version of VTK (prior to VTK 4.2). To do this you need to use CMake 2.0 as it was the last version of CMake to support VTK 4.0.")
|
|
endmacro()
|
|
|