diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-01-08 16:45:48 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-01-08 16:45:48 (GMT) |
commit | 69762f4d99f85ba5661eb3a22c51f5cc54c1917d (patch) | |
tree | 96935a8ee96c9662e16d5bfa5626470f1fb39abe /Modules/CMakeBackwardCompatibilityC.cmake | |
parent | 85607bc50b5a6d97775e73529f1a268a3b39cf0f (diff) | |
download | CMake-69762f4d99f85ba5661eb3a22c51f5cc54c1917d.zip CMake-69762f4d99f85ba5661eb3a22c51f5cc54c1917d.tar.gz CMake-69762f4d99f85ba5661eb3a22c51f5cc54c1917d.tar.bz2 |
Fix FindX11 to match convention
Diffstat (limited to 'Modules/CMakeBackwardCompatibilityC.cmake')
-rw-r--r-- | Modules/CMakeBackwardCompatibilityC.cmake | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Modules/CMakeBackwardCompatibilityC.cmake b/Modules/CMakeBackwardCompatibilityC.cmake index c15a9a9..80656e2 100644 --- a/Modules/CMakeBackwardCompatibilityC.cmake +++ b/Modules/CMakeBackwardCompatibilityC.cmake @@ -28,15 +28,15 @@ IF(NOT CMAKE_SKIP_COMPATIBILITY_TESTS) TEST_BIG_ENDIAN(CMAKE_WORDS_BIGENDIAN) INCLUDE (${CMAKE_ROOT}/Modules/FindX11.cmake) - IF("${CMAKE_X11_INCLUDE_PATH}" MATCHES "^/usr/include$") + IF("${X11_X11_INCLUDE_PATH}" MATCHES "^/usr/include$") SET (CMAKE_X_CFLAGS "" CACHE STRING "X11 extra flags.") - ELSE("${CMAKE_X11_INCLUDE_PATH}" MATCHES "^/usr/include$") - SET (CMAKE_X_CFLAGS "-I${CMAKE_X11_INCLUDE_PATH}" CACHE STRING + ELSE("${X11_X11_INCLUDE_PATH}" MATCHES "^/usr/include$") + SET (CMAKE_X_CFLAGS "-I${X11_X11_INCLUDE_PATH}" CACHE STRING "X11 extra flags.") - ENDIF("${CMAKE_X11_INCLUDE_PATH}" MATCHES "^/usr/include$") - SET (CMAKE_X_LIBS "${CMAKE_X_LIBS}" CACHE STRING + ENDIF("${X11_X11_INCLUDE_PATH}" MATCHES "^/usr/include$") + SET (CMAKE_X_LIBS "${X11_LIBRARIES}" CACHE STRING "Libraries and options used in X11 programs.") - SET (CMAKE_HAS_X "${CMAKE_HAS_X}" CACHE INTERNAL "Is X11 around.") + SET (CMAKE_HAS_X "${X11_FOUND}" CACHE INTERNAL "Is X11 around.") INCLUDE (${CMAKE_ROOT}/Modules/FindThreads.cmake) |