diff options
| author | 2020-04-22 17:45:44 -0400 | |
|---|---|---|
| committer | 2020-04-22 17:45:44 -0400 | |
| commit | 6ce3d174b767fd60f1f549218ae330da8fab07d5 (patch) | |
| tree | 25f0e4fbbf82e15d5a099b7e381127a0e3e8934f | |
| parent | Merge pull request #3763 from H27CK/vk-cmd (diff) | |
| parent | Set _FORTIFY_SOURCE=0 if building Opus with mingw-w64 (diff) | |
| download | yuzu-6ce3d174b767fd60f1f549218ae330da8fab07d5.tar.gz yuzu-6ce3d174b767fd60f1f549218ae330da8fab07d5.tar.xz yuzu-6ce3d174b767fd60f1f549218ae330da8fab07d5.zip | |
Merge pull request #3759 from H27CK/opus-mingw-w64
Set _FORTIFY_SOURCE=0 if building Opus with mingw-w64
| -rw-r--r-- | externals/opus/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/externals/opus/CMakeLists.txt b/externals/opus/CMakeLists.txt index cbb393272..94a86551f 100644 --- a/externals/opus/CMakeLists.txt +++ b/externals/opus/CMakeLists.txt | |||
| @@ -203,7 +203,11 @@ endif() | |||
| 203 | target_compile_definitions(opus PRIVATE OPUS_BUILD ENABLE_HARDENING) | 203 | target_compile_definitions(opus PRIVATE OPUS_BUILD ENABLE_HARDENING) |
| 204 | 204 | ||
| 205 | if(NOT MSVC) | 205 | if(NOT MSVC) |
| 206 | target_compile_definitions(opus PRIVATE _FORTIFY_SOURCE=2) | 206 | if(MINGW) |
| 207 | target_compile_definitions(opus PRIVATE _FORTIFY_SOURCE=0) | ||
| 208 | else() | ||
| 209 | target_compile_definitions(opus PRIVATE _FORTIFY_SOURCE=2) | ||
| 210 | endif() | ||
| 207 | endif() | 211 | endif() |
| 208 | 212 | ||
| 209 | # It is strongly recommended to uncomment one of these VAR_ARRAYS: Use C99 | 213 | # It is strongly recommended to uncomment one of these VAR_ARRAYS: Use C99 |