diff options
author | Arne Juul <arnej@yahooinc.com> | 2022-07-26 14:48:01 +0000 |
---|---|---|
committer | Arne Juul <arnej@yahooinc.com> | 2022-08-16 08:53:43 +0000 |
commit | 512a2e9eece834a98c735aab9d09e3662b7e16a1 (patch) | |
tree | 3dcc3da3d2d196ae896ec5a63110885d1b83533a /client/CMakeLists.txt | |
parent | cf579cd8d957b1bb2992d7a86830fbca3a64f82b (diff) |
hookup new version of vespa-logfmt
* adds simple go compilation hook for cmake
* stop installing perl version of vespa-logfmt
Diffstat (limited to 'client/CMakeLists.txt')
-rw-r--r-- | client/CMakeLists.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt new file mode 100644 index 00000000000..1ca6d2b4e60 --- /dev/null +++ b/client/CMakeLists.txt @@ -0,0 +1,14 @@ +# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. + +set(GODIR ${CMAKE_CURRENT_SOURCE_DIR}/go) + +file(GLOB_RECURSE GOSRCFILES ${GODIR}/*.go) + +add_custom_command(OUTPUT ${GODIR}/bin/vespa-logfmt + COMMAND make + DEPENDS ${GODIR}/Makefile ${GOSRCFILES} + WORKING_DIRECTORY ${GODIR}) + +add_custom_target(vespalog_logfmt ALL DEPENDS ${GODIR}/bin/vespa-logfmt) + +install(PROGRAMS ${GODIR}/bin/vespa-logfmt DESTINATION bin) |