From f0d382899cd513125fd67c4503496d4c7c7ec7c5 Mon Sep 17 00:00:00 2001 From: Merry Date: Wed, 28 Dec 2022 19:30:34 +0000 Subject: [PATCH] Squashed 'externals/mcl/' changes from 0172df743..7f357b571 7f357b571 mcl: 0.1.12 9e6107f56 CMakeLists: Fix building with MSVC-clang toolset git-subtree-dir: externals/mcl git-subtree-split: 7f357b571fcabecc959884b6b08d3b663d32ea93 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f9b9195..b3cf1ea2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.12 FATAL_ERROR) include(GNUInstallDirs) -project(mcl LANGUAGES CXX VERSION 0.1.11) +project(mcl LANGUAGES CXX VERSION 0.1.12) # Determine if we're built as a subproject (using add_subdirectory) # or if this is the master project. @@ -70,7 +70,7 @@ if (MSVC) list(APPEND MCL_CXX_FLAGS /WX) endif() - if (CMAKE_VS_PLATFORM_TOOLSET MATCHES "LLVM-vs[0-9]+") + if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") list(APPEND MCL_CXX_FLAGS -Qunused-arguments -Wno-missing-braces)