Browse Source

Try to fix the build

Panagiotis Christopoulos Charitos 3 years ago
parent
commit
17b7d0e756
2 changed files with 5 additions and 1 deletions
  1. 1 1
      .github/workflows/Linux.yml
  2. 4 0
      CMakeLists.txt

+ 1 - 1
.github/workflows/Linux.yml

@@ -88,7 +88,7 @@ jobs:
       uses: actions/checkout@v2
       uses: actions/checkout@v2
 
 
     - name: Configure CMake
     - name: Configure CMake
-      run: cmake -B ${{github.workspace}}/build -DANKI_BUILD_TESTS=OFF -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_BUILD_TYPE=Debug -DANKI_EXTRA_CHECKS=ON -DANKI_HEADLESS=ON
+      run: cmake -B ${{github.workspace}}/build -DANKI_BUILD_TESTS=OFF -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_BUILD_TYPE=Release -DANKI_EXTRA_CHECKS=ON -DANKI_HEADLESS=ON
 
 
     - name: Build
     - name: Build
       run: cmake --build ${{github.workspace}}/build --config Release
       run: cmake --build ${{github.workspace}}/build --config Release

+ 4 - 0
CMakeLists.txt

@@ -387,6 +387,10 @@ if(ANDROID)
 	include_directories("${ANDROID_NDK}/sources/android/native_app_glue")
 	include_directories("${ANDROID_NDK}/sources/android/native_app_glue")
 endif()
 endif()
 
 
+if(LINUX)
+	set(THIRD_PARTY_LIBS ${THIRD_PARTY_LIBS} X11-xcb pthread dl)
+endif()
+
 # AnKi compiler flags (Mainly warnings)
 # AnKi compiler flags (Mainly warnings)
 if(NOT MSVC)
 if(NOT MSVC)
 	add_definitions("-pedantic -Wno-unknown-warning-option -Wall -W -Wextra -Wstrict-aliasing -Wwrite-strings -Wunused "
 	add_definitions("-pedantic -Wno-unknown-warning-option -Wall -W -Wextra -Wstrict-aliasing -Wwrite-strings -Wunused "