In CMake, check for and remove in-tree scmrev.h generated by Visual Studio

This commit is contained in:
Zopolis4 2022-09-14 15:51:02 +10:00
parent 05869734ed
commit 45afab7d5d
No known key found for this signature in database
GPG key ID: C1117D56FBC82774

View file

@ -980,6 +980,10 @@ else()
set(DOLPHIN_WC_IS_STABLE "0")
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(
"${PROJECT_SOURCE_DIR}/Source/Core/Common/scmrev.h.in"
"${PROJECT_BINARY_DIR}/Source/Core/Common/scmrev.h"