diff options
Diffstat (limited to 'externals/CMakeLists.txt')
| -rw-r--r-- | externals/CMakeLists.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt index 1f7cd598e..82a6da9fd 100644 --- a/externals/CMakeLists.txt +++ b/externals/CMakeLists.txt | |||
| @@ -42,6 +42,11 @@ endif() | |||
| 42 | # mbedtls | 42 | # mbedtls |
| 43 | add_subdirectory(mbedtls) | 43 | add_subdirectory(mbedtls) |
| 44 | target_include_directories(mbedtls PUBLIC ./mbedtls/include) | 44 | target_include_directories(mbedtls PUBLIC ./mbedtls/include) |
| 45 | if (NOT MSVC) | ||
| 46 | target_compile_options(mbedcrypto PRIVATE | ||
| 47 | -Wno-unused-but-set-variable | ||
| 48 | -Wno-string-concatenation) | ||
| 49 | endif() | ||
| 45 | 50 | ||
| 46 | # MicroProfile | 51 | # MicroProfile |
| 47 | add_library(microprofile INTERFACE) | 52 | add_library(microprofile INTERFACE) |
| @@ -94,6 +99,12 @@ if (ENABLE_CUBEB AND NOT TARGET cubeb::cubeb) | |||
| 94 | set(BUILD_TOOLS OFF) | 99 | set(BUILD_TOOLS OFF) |
| 95 | add_subdirectory(cubeb) | 100 | add_subdirectory(cubeb) |
| 96 | add_library(cubeb::cubeb ALIAS cubeb) | 101 | add_library(cubeb::cubeb ALIAS cubeb) |
| 102 | if (NOT MSVC) | ||
| 103 | if (TARGET speex) | ||
| 104 | target_compile_options(speex PRIVATE -Wno-sign-compare) | ||
| 105 | endif() | ||
| 106 | target_compile_options(cubeb PRIVATE -Wno-implicit-const-int-float-conversion) | ||
| 107 | endif() | ||
| 97 | endif() | 108 | endif() |
| 98 | 109 | ||
| 99 | # DiscordRPC | 110 | # DiscordRPC |
| @@ -151,6 +162,9 @@ endif() | |||
| 151 | if (NOT TARGET LLVM::Demangle) | 162 | if (NOT TARGET LLVM::Demangle) |
| 152 | add_library(demangle demangle/ItaniumDemangle.cpp) | 163 | add_library(demangle demangle/ItaniumDemangle.cpp) |
| 153 | target_include_directories(demangle PUBLIC ./demangle) | 164 | target_include_directories(demangle PUBLIC ./demangle) |
| 165 | if (NOT MSVC) | ||
| 166 | target_compile_options(demangle PRIVATE -Wno-deprecated-declarations) # std::is_pod | ||
| 167 | endif() | ||
| 154 | add_library(LLVM::Demangle ALIAS demangle) | 168 | add_library(LLVM::Demangle ALIAS demangle) |
| 155 | endif() | 169 | endif() |
| 156 | 170 | ||