Skip to content

Commit

Permalink
Suppress build: masm logo and clang warning argument unused durin…
Browse files Browse the repository at this point in the history
…g compilation
  • Loading branch information
Challanger524 committed Jan 29, 2025
1 parent 8bf61ae commit 93147a5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 93147a5

Please sign in to comment.