mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
4e50d99934
This will be the build system going forward, so it seems sensible to support it right away. There's no neat way to use the system GameNetworkingSockets upstream yet, so we add a hack for now. Proactively decrease platforms to Linux only since the CMake doesn't quite use GNUInstallDirs on Darwin and Windows unfortunately.
15 lines
465 B
Diff
15 lines
465 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 1084048..1ea4c84 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -143,7 +143,8 @@ if(BUILD_CLIENT OR BUILD_SERVER)
|
|
file(WRITE ${PROJECT_BINARY_DIR}/bin/steam_appid.txt "638490")
|
|
else()
|
|
# GameNetworkingSockets
|
|
- add_subdirectory(shared/libs/GameNetworkingSockets)
|
|
+ # add_subdirectory(shared/libs/GameNetworkingSockets)
|
|
+ find_package(GameNetworkingSockets REQUIRED)
|
|
endif()
|
|
endif()
|
|
|