summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMegaMech <MegaMech@users.noreply.github.com>2025-05-15 15:25:18 -0600
committerGitHub <noreply@github.com>2025-05-15 15:25:18 -0600
commit7cc9894aa12175f10ad91174cff41ef1701df166 (patch)
tree8a24f90b69a06ed36d5aa8e53a003ae4f0f8aaa6 /CMakeLists.txt
parente7415ec072ee1cdc99a49db658062d4de0b3301c (diff)
Fix compile (#199)
* Fixes made so far * Fixes up until linking * Moved GetInterpreter() to a single function under the Engine.h * Updated shader files included with assets, added exception for Linux for including SDL2_net * Removed osSetTime stub(for now) * Adjustments to get it to compile + run * Decoupled GetInterpreter() from the GameEngine Class, corrected a invalid include in SpaghettiGui.cpp --------- Co-authored-by: sitton76 <58642183+sitton76@users.noreply.github.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d27231954..34b110bc7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -401,6 +401,9 @@ if(USE_NETWORKING)
target_compile_definitions(${PROJECT_NAME} PRIVATE USE_NETWORKING)
if(CMAKE_SYSTEM_NAME STREQUAL "NintendoSwitch")
target_link_libraries(${PROJECT_NAME} PRIVATE SDL2_net)
+ elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
+ find_package(SDL2_net REQUIRED)
+ target_link_libraries(${PROJECT_NAME} PRIVATE SDL2_net::SDL2_net)
else()
find_package(SDL2_net REQUIRED)
target_link_libraries(${PROJECT_NAME} PRIVATE SDL2_net::SDL2_net-static)