Merge pull request #11061 from Zopolis4/rnvs

Check for and remove in-tree scmrev.h
This commit is contained in:
Admiral H. Curtiss 2022-09-19 01:38:13 +02:00 committed by GitHub
commit d19994b4bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -980,6 +980,10 @@ else()
set(DOLPHIN_WC_IS_STABLE "0") set(DOLPHIN_WC_IS_STABLE "0")
endif() endif()
# Remove in-tree revision information generated by Visual Studio
# This is because the compiler will check in-tree first and use this, even if it is outdated
file(REMOVE "${PROJECT_SOURCE_DIR}/Source/Core/Common/scmrev.h")
configure_file( configure_file(
"${PROJECT_SOURCE_DIR}/Source/Core/Common/scmrev.h.in" "${PROJECT_SOURCE_DIR}/Source/Core/Common/scmrev.h.in"
"${PROJECT_BINARY_DIR}/Source/Core/Common/scmrev.h" "${PROJECT_BINARY_DIR}/Source/Core/Common/scmrev.h"