fixes #0002125: CMake shouldn't generate Version.in for release tarballs.
This commit is contained in:
parent
a9530bc678
commit
675bcc2510
|
@ -3,6 +3,9 @@ set(PACKAGE_WCREF "$WCREV$")
|
|||
set(PACKAGE_WCDATE "$WCDATE$")
|
||||
set(PACKAGE_WCURL "$WCURL$")
|
||||
|
||||
# If the sources don't include a Version.h then create one
|
||||
if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/Version.h)
|
||||
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Version.h.cmake
|
||||
${CMAKE_CURRENT_BINARY_DIR}/Version.h.in
|
||||
)
|
||||
|
@ -19,3 +22,4 @@ if (NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/Version.h)
|
|||
${CMAKE_CURRENT_BINARY_DIR}/Version.h
|
||||
)
|
||||
endif (NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/Version.h)
|
||||
endif (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/Version.h)
|
||||
|
|
Loading…
Reference in New Issue
Block a user