فهرست منبع

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
Andrey Filipenkov 3 سال پیش
والد
کامیت
37f56e075a
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      CMakeLists.txt

+ 1 - 0
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()