Added -DNOGA=1 flag to disable Google Analytics

This commit is contained in:
Thulinma 2018-04-12 15:31:32 +02:00
parent 712fec11d5
commit 662f1cfa9d
2 changed files with 19 additions and 0 deletions

View file

@ -520,6 +520,11 @@ set(lspSOURCES
${SOURCE_DIR}/lsp/minified.js
)
if (NOT DEFINED NOGA )
list(APPEND lspSOURCES ${SOURCE_DIR}/lsp/analytics.js)
endif()
add_custom_command(OUTPUT ${BINARY_DIR}/generated/server.html
COMMAND ${CMAKE_COMMAND} -DSOURCE_DIR="${SOURCE_DIR}" -DlspSOURCES="${lspSOURCES}" -P ${SOURCE_DIR}/CMakeServHtml.txt
DEPENDS ${lspSOURCES} ${SOURCE_DIR}/CMakeServHtml.txt ${SOURCE_DIR}/lsp/main.css ${SOURCE_DIR}/lsp/header.html ${SOURCE_DIR}/lsp/footer.html