summaryrefslogtreecommitdiffstats
path: root/Tests/X11
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-07-29 15:11:05 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-07-29 15:11:05 (GMT)
commit8e13e2de901e25e1ee7c42031386dc099f74f2c1 (patch)
treee71164956b443f4f68de84f93532a0b4ad2e702b /Tests/X11
parente52dc31185575fc25d74c0b55df095b1bd70eeb5 (diff)
downloadCMake-8e13e2de901e25e1ee7c42031386dc099f74f2c1.zip
CMake-8e13e2de901e25e1ee7c42031386dc099f74f2c1.tar.gz
CMake-8e13e2de901e25e1ee7c42031386dc099f74f2c1.tar.bz2
ERR: Fix test to use post CMAKE_X_LIBS variables
Diffstat (limited to 'Tests/X11')
-rw-r--r--Tests/X11/CMakeLists.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/Tests/X11/CMakeLists.txt b/Tests/X11/CMakeLists.txt
index 760def1..9dc1e46 100644
--- a/Tests/X11/CMakeLists.txt
+++ b/Tests/X11/CMakeLists.txt
@@ -2,11 +2,12 @@
PROJECT (UseX11 C)
INCLUDE (${CMAKE_ROOT}/Modules/FindX11.cmake)
+MESSAGE("X11_FOUND: ${X11_FOUND}")
ADD_EXECUTABLE (UseX11 X11.c)
-IF(CMAKE_HAS_X)
+IF(X11_FOUND)
ADD_DEFINITIONS(-DCMAKE_HAS_X)
INCLUDE_DIRECTORIES(${X11_INCLUDE_DIR})
- TARGET_LINK_LIBRARIES(UseX11 ${CMAKE_X_LIBS})
-ENDIF(CMAKE_HAS_X)
+ TARGET_LINK_LIBRARIES(UseX11 ${X11_LIBRARIES})
+ENDIF(X11_FOUND)