Added -PRERELEASE suffix to flow package

This commit is contained in:
Alvin Moore 2019-12-20 09:36:48 -08:00
parent 45700c535a
commit e226f41665
1 changed files with 5 additions and 1 deletions

View File

@ -29,10 +29,14 @@ if(NOT OPEN_FOR_IDE)
endif()
endforeach()
if(NOT FDB_RELEASE)
set(prerelease_string "-PRERELEASE")
endif()
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/packages)
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/packages)
set(package_dir ${CMAKE_CURRENT_BINARY_DIR}/packages/fdb-flow-${CMAKE_PROJECT_VERSION})
set(tar_file ${CMAKE_BINARY_DIR}/packages/fdb-flow-${CMAKE_PROJECT_VERSION}.tar.gz)
set(tar_file ${CMAKE_BINARY_DIR}/packages/fdb-flow-${CMAKE_PROJECT_VERSION}${prerelease_string}.tar.gz)
add_custom_command(OUTPUT ${tar_file}
COMMAND
${CMAKE_COMMAND} -E make_directory ${package_dir} &&