Browse Source

Fix the headless build

Panagiotis Christopoulos Charitos 3 years ago
parent
commit
6dc1d514a9
1 changed files with 5 additions and 1 deletions
  1. 5 1
      CMakeLists.txt

+ 5 - 1
CMakeLists.txt

@@ -388,7 +388,11 @@ if(ANDROID)
 endif()
 
 if(LINUX)
-	set(THIRD_PARTY_LIBS ${THIRD_PARTY_LIBS} X11-xcb pthread dl)
+	set(THIRD_PARTY_LIBS ${THIRD_PARTY_LIBS} pthread dl)
+
+	if(SDL)
+		set(THIRD_PARTY_LIBS ${THIRD_PARTY_LIBS} X11-xcb)
+	endif()
 endif()
 
 # AnKi compiler flags (Mainly warnings)