Skip to content

Commit

Permalink
Silence some clang-cl warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
wheremyfoodat authored Nov 24, 2024
1 parent 4df171a commit 93c143d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,11 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND MSVC)
add_subdirectory(third_party/cryptoppwin)
include_directories(third_party/cryptoppwin/include)
target_link_libraries(AlberCore PRIVATE cryptoppwin)

# Also silence some of clang-cl's more... intrusive warnings
set(WARNING_FLAGS "/W1 -Wno-unused-function -Wno-unused-but-set-variable -Wno-reorder-ctor")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WARNING_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WARNING_FLAGS}")
else()
set(CRYPTOPP_BUILD_TESTING OFF)

Expand Down

0 comments on commit 93c143d

Please sign in to comment.