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)