From 3bbfbfe4b165daacd02a48a6ceb598c06fdb4693 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 11 May 2012 14:17:49 +0000 Subject: dont use sdl include when building headless --- intern/ghost/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'intern/ghost') diff --git a/intern/ghost/CMakeLists.txt b/intern/ghost/CMakeLists.txt index 5c653ac92c0..eeb924d7bf0 100644 --- a/intern/ghost/CMakeLists.txt +++ b/intern/ghost/CMakeLists.txt @@ -165,9 +165,11 @@ if(WITH_HEADLESS OR WITH_GHOST_SDL) ) endif() - list(APPEND INC_SYS - ${SDL_INCLUDE_DIR} - ) + if(NOT WITH_HEADLESS) + list(APPEND INC_SYS + ${SDL_INCLUDE_DIR} + ) + endif() elseif(APPLE) if(WITH_COCOA) -- cgit v1.2.3