diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-11-05 12:15:42 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-11-05 12:15:42 (GMT) |
commit | 8ac50c4aad81f3b2e5ac026ce3ac5cf6f9aca307 (patch) | |
tree | a9a9eb7d6a54c0a0d6feb8af623ae0139adc7bc4 /Tests/X11 | |
parent | 14ab03ff69ec4386a9fcde5e0ab829d01d69f950 (diff) | |
download | CMake-8ac50c4aad81f3b2e5ac026ce3ac5cf6f9aca307.zip CMake-8ac50c4aad81f3b2e5ac026ce3ac5cf6f9aca307.tar.gz CMake-8ac50c4aad81f3b2e5ac026ce3ac5cf6f9aca307.tar.bz2 |
Try to fix FindX11
Diffstat (limited to 'Tests/X11')
-rw-r--r-- | Tests/X11/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Tests/X11/CMakeLists.txt b/Tests/X11/CMakeLists.txt index bc2294e..a4cc123 100644 --- a/Tests/X11/CMakeLists.txt +++ b/Tests/X11/CMakeLists.txt @@ -4,7 +4,11 @@ PROJECT (X11 C) INCLUDE (${CMAKE_ROOT}/Modules/FindX11.cmake) IF(CMAKE_HAS_X) - INCLUDE_DIRECTORIES(${CMAKE_X_CFLAGS}) + IF(CMAKE_X_CFLAGS) + SET(CMAKE_C_FLAGS "${CMAKE_X_CFLAGS} ${CMAKE_C_FLAGS}") + ENDIF(CMAKE_X_CFLAGS) + + INCLUDE_DIRECTORIES(${CMAKE_X11_INCLUDES}) ADD_DEFINITIONS(-DCMAKE_HAS_X) ENDIF(CMAKE_HAS_X) |