From 2a7b2484f7370294138b4641b861feccea44eb84 Mon Sep 17 00:00:00 2001 From: kin4stat Date: Fri, 22 Nov 2024 17:50:46 +0300 Subject: [PATCH] Fix 'ignoring unknown parameter /MP' warning --- client/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index ad135e4..1783b6a 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -35,7 +35,7 @@ endif() file(GLOB_RECURSE PROJECT_SOURCE_FILES "src/*.h" "src/*.cpp") file(GLOB_RECURSE CAPI_FILES "../c-api/*.h" "../c-api/*.cpp") -if(WIN32 AND (MSVC OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")) +if(MSVC AND NOT (CMAKE_CXX_COMPILER_ID MATCHES "Clang")) add_definitions(/MP) endif()