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