mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-06 22:25:41 +12:00
Silence some clang-cl warnings
This commit is contained in:
parent
4df171abfc
commit
93c143d79d
1 changed files with 5 additions and 0 deletions
|
@ -189,6 +189,11 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND MSVC)
|
||||||
add_subdirectory(third_party/cryptoppwin)
|
add_subdirectory(third_party/cryptoppwin)
|
||||||
include_directories(third_party/cryptoppwin/include)
|
include_directories(third_party/cryptoppwin/include)
|
||||||
target_link_libraries(AlberCore PRIVATE cryptoppwin)
|
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()
|
else()
|
||||||
set(CRYPTOPP_BUILD_TESTING OFF)
|
set(CRYPTOPP_BUILD_TESTING OFF)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue