From 93147a53a1f3456caae80758266608cb2b66b741 Mon Sep 17 00:00:00 2001 From: Daniil <47363301+Challanger524@users.noreply.github.com> Date: Wed, 29 Jan 2025 13:59:31 +0200 Subject: [PATCH] Suppress build: `masm` logo and `clang` warning argument unused during compilation --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ff5eb7ef..9f319d40 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -243,6 +243,12 @@ if(BOOST_CONTEXT_IMPLEMENTATION STREQUAL "winfib") target_compile_definitions(boost_context PUBLIC BOOST_USE_WINFIB=) endif() +if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") + target_compile_options(boost_context PRIVATE "/nologo") +elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") + target_compile_options(boost_context PRIVATE "-Wno-unused-command-line-argument") +endif() + if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt") add_subdirectory(test)