From 52d7a6f56a904a0bada2aa338f79f18d8284a47c Mon Sep 17 00:00:00 2001 From: OatmealDome Date: Fri, 18 Feb 2022 13:50:27 -0500 Subject: [PATCH] CMakeLists: Enable LINUX_LOCAL_DEV on Steam builds for Linux The Sys folder should be included along with the executable. --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f3b6140158..3a22ed7534 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -428,8 +428,10 @@ if(ENABLE_LTO) endif() endif() -if(UNIX AND LINUX_LOCAL_DEV) - add_definitions(-DLINUX_LOCAL_DEV) +if(UNIX) + if(LINUX_LOCAL_DEV OR (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND STEAM)) + add_definitions(-DLINUX_LOCAL_DEV) + endif() endif() # BSDs put packages in /usr/local instead of /usr, so we need to