From 881f013742bcdfbf6522829b210e976006ce6c01 Mon Sep 17 00:00:00 2001 From: Andrey Akhmichin <15944199+nekonomicon@users.noreply.github.com> Date: Fri, 8 Dec 2023 13:34:28 +0500 Subject: [PATCH] cmake: fix wrong condition. --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e2ea26c09d..bb3358618c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,9 +53,13 @@ if (CMAKE_SIZEOF_VOID_P EQUAL 4 OR OR CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" OR CMAKE_SYSTEM_PROCESSOR STREQUAL "amd64"))) option(64BIT "Disable auto -m32 appending to compiler flags" OFF) - option(GOLDSOURCE_SUPPORT "Build goldsource compatible client library" ON) else() option(64BIT "Disable auto -m32 appending to compiler flags" ON) +endif() + +if ((WIN32 OR ${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR APPLE) AND NOT 64BIT) + option(GOLDSOURCE_SUPPORT "Build goldsource compatible client library" ON) +else() option(GOLDSOURCE_SUPPORT "Build goldsource compatible client library" OFF) endif()