mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
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
This commit is contained in:
committed by
Andrii Danylchenko
parent
b8b330668d
commit
37f56e075a
@@ -90,6 +90,7 @@ define_property(
|
|||||||
# Generate Version.cpp
|
# Generate Version.cpp
|
||||||
if(ENABLE_GITVERSION)
|
if(ENABLE_GITVERSION)
|
||||||
add_custom_target(update_version ALL
|
add_custom_target(update_version ALL
|
||||||
|
BYPRODUCTS "Version.cpp"
|
||||||
COMMAND ${CMAKE_COMMAND} -DGIT_SHA1="${GIT_SHA1}" -P "${PROJECT_SOURCE_DIR}/cmake_modules/Version.cmake"
|
COMMAND ${CMAKE_COMMAND} -DGIT_SHA1="${GIT_SHA1}" -P "${PROJECT_SOURCE_DIR}/cmake_modules/Version.cmake"
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
|
Reference in New Issue
Block a user