summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
Diffstat (limited to 'Tests')
-rw-r--r--Tests/X11/CMakeLists.txt6
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)