maint-6413: use file write as printf inserts escape chars
parent
58e9a59199
commit
a382dcfb8d
|
|
@ -1310,13 +1310,14 @@ source_group("CMake Rules" FILES ViewerInstall.cmake)
|
|||
# the viewer_version.txt file created here is for passing to viewer_manifest and autobuild
|
||||
# the summary.json file is created for the benefit of the TeamCity builds, where
|
||||
# it is used to provide descriptive information to the build results page
|
||||
# channel added to summary.json for programmatic access to that by VMP SL-321
|
||||
add_custom_target(generate_viewer_version ALL
|
||||
COMMAND printf '${VIEWER_SHORT_VERSION}.${VIEWER_VERSION_REVISION}' > ${CMAKE_CURRENT_BINARY_DIR}/viewer_version.txt
|
||||
COMMAND printf '{"Type":"viewer","Version":"${VIEWER_SHORT_VERSION}.${VIEWER_VERSION_REVISION}","Channel":"${VIEWER_CHANNEL}"}' > ${CMAKE_BINARY_DIR}/summary.json
|
||||
COMMENT Generating viewer_version.txt for manifest processing
|
||||
)
|
||||
|
||||
#Channel added for VMP programmatic access. MAINT-6413/SL-321
|
||||
file(WRITE ${CMAKE_BINARY_DIR}/summary.json '{"Type":"viewer","Version":"${VIEWER_SHORT_VERSION}.${VIEWER_VERSION_REVISION}","Channel","${VIEWER_CHANNEL}"}')
|
||||
|
||||
set_source_files_properties(
|
||||
llversioninfo.cpp tests/llversioninfo_test.cpp
|
||||
PROPERTIES
|
||||
|
|
|
|||
Loading…
Reference in New Issue