From de967d5ff2f87bb3307b404ff87a20dad02aa3f0 Mon Sep 17 00:00:00 2001 From: Sabian Roberts <31491602+sabianroberts@users.noreply.github.com> Date: Tue, 19 Dec 2023 23:11:15 +0000 Subject: [PATCH] Fix Linux Build THANK YOU @FreeSlave --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 23ae0107..0ed79fbf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,7 +8,7 @@ project(Aura-Client) include("CMake/helpers.cmake") -set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_POSITION_INDEPENDENT_CODE ON) @@ -202,7 +202,7 @@ elseif(UNIX) else(APPLE) # I wasn't able to do this in any other way. # Things like imported targets result in linking with relative path. - set(VGUI_LINK_FLAGS "-L${CMAKE_SOURCE_DIR}/linux/release -l:vgui.so") + set(VGUI_LINK_FLAGS "-L${CMAKE_SOURCE_DIR}/linux/release -l:vgui.so -L${CMAKE_SOURCE_DIR}/linux -l:libSDL2-2.0.so.0") # --push-state isn't supported on older compilers. I tried checking for support # using CheckCXXCompilerFlag and CheckCXXSourceCompiles, but they were reporting