Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge pull request #10620 from phire/cmake_win_fixes
Various fixes for msvc/cmake builds
- Loading branch information
Showing
56 changed files
with
348 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| include(RemoveCompileFlag) | ||
|
|
||
| macro(dolphin_disable_warnings_msvc _target) | ||
| if (MSVC) | ||
| get_target_property(_target_cxx_flags ${_target} COMPILE_OPTIONS) | ||
| if (_target_cxx_flags) | ||
| set(new_flags "") | ||
| foreach(flag IN LISTS _target_cxx_flags) | ||
| # all warning flags start with "/W" or "/w" or "-W" or "-w" | ||
| if (NOT "${flag}" MATCHES "^[-/][Ww]") | ||
| list(APPEND new_flags "${flag}") | ||
| endif() | ||
| endforeach() | ||
| set_target_properties(${_target} PROPERTIES COMPILE_OPTIONS "${new_flags}") | ||
| endif() | ||
| target_compile_options(${_target} PRIVATE "/W0") | ||
| endif() | ||
| endmacro() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| # from https://stackoverflow.com/a/49216539 | ||
| # The linked answer does some weird preconfiguring by manually splitting the CMAKE_CXX_FLAGS variable and applying it to a target, | ||
| # but as far as I can tell none of that is necessary, this works just fine as-is. | ||
|
|
||
| # | ||
| # Removes the specified compile flag from the specified target. | ||
| # _target - The target to remove the compile flag from | ||
| # _flag - The compile flag to remove | ||
| # | ||
| macro(remove_cxx_flag_from_target _target _flag) | ||
| get_target_property(_target_cxx_flags ${_target} COMPILE_OPTIONS) | ||
| if(_target_cxx_flags) | ||
| list(REMOVE_ITEM _target_cxx_flags ${_flag}) | ||
| set_target_properties(${_target} PROPERTIES COMPILE_OPTIONS "${_target_cxx_flags}") | ||
| endif() | ||
| endmacro() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| add_library(lzo2 STATIC | ||
| minilzo.c | ||
| ) | ||
| dolphin_disable_warnings_msvc(lzo2) | ||
|
|
||
| target_include_directories(lzo2 | ||
| PUBLIC | ||
|
|
||
Submodule Qt
updated
5 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,3 +11,4 @@ add_library(ed25519 | |
| sc.c | ||
| sha512.c | ||
| verify.c) | ||
| dolphin_disable_warnings_msvc(ed25519) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.