Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: Windows fixes #5624

Merged
merged 2 commits into from Apr 24, 2021
Merged

cmake: Windows fixes #5624

merged 2 commits into from Apr 24, 2021

Conversation

Orphis
Copy link
Member

@Orphis Orphis commented Jun 16, 2017

No description provided.

@Orphis
Copy link
Member Author

Orphis commented Jun 16, 2017

@ligfx

if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
foreach(f CMAKE_C_FLAGS_DEBUG CMAKE_CXX_FLAGS_DEBUG CMAKE_C_FLAGS_RELWITHDEBINFO CMAKE_CXX_FLAGS_RELWITHDEBINFO)
if("${${f}}" MATCHES "/Zi")
string(REGEX REPLACE "/Zi" "/Z7" "${f}" "${${f}}")

This comment was marked as off-topic.

This comment was marked as off-topic.

@@ -9,6 +9,8 @@ set(CMAKE_OSX_ARCHITECTURES "x86_64")
# features can be used, not the minimum required version to run.
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9" CACHE string "")

set(CMAKE_USER_MAKE_RULES_OVERRIDE "CMake/FlagsOverride.cmake")

This comment was marked as off-topic.

This comment was marked as off-topic.

@@ -0,0 +1,7 @@
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

@ligfx
Copy link
Contributor

ligfx commented Jun 16, 2017

LGTM. I'd love it if a comment with https://stackoverflow.com/a/32956785 could be included somewhere, for explanation, but it works fine as stands.

@fantesykikachu
Copy link

With cmake going to be used on windows soon what is the status of this PR.

sccache is a ccache rewrite that supports GCC, Clang and MSVC.
Also allows better parallelization since there's no contention on a PDB
file with compiling.
@leoetlino leoetlino merged commit 302e813 into dolphin-emu:master Apr 24, 2021
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants