From 37f56e075ab45a47711ac93d61d7a77a37950673 Mon Sep 17 00:00:00 2001 From: Andrey Filipenkov Date: Wed, 20 Jul 2022 16:56:17 +0300 Subject: [PATCH] specify that update_version target produces file Version.cpp without it Xcode's new build system complains that Version.cpp doesn't exist and building freezes --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3263f6233..5f09fc070 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -90,6 +90,7 @@ define_property( # Generate Version.cpp if(ENABLE_GITVERSION) add_custom_target(update_version ALL + BYPRODUCTS "Version.cpp" COMMAND ${CMAKE_COMMAND} -DGIT_SHA1="${GIT_SHA1}" -P "${PROJECT_SOURCE_DIR}/cmake_modules/Version.cmake" ) else()