From 45afab7d5d53be3279248bd701bfa72ab9ce0e4d Mon Sep 17 00:00:00 2001 From: Zopolis4 Date: Wed, 14 Sep 2022 15:51:02 +1000 Subject: [PATCH] In CMake, check for and remove in-tree scmrev.h generated by Visual Studio --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 163ea2c943..04bcdde4c2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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"