diff options
-rw-r--r-- | intern/ghost/CMakeLists.txt | 8 |
1 files changed, 5 insertions, 3 deletions
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) |