summaryrefslogtreecommitdiffstats
path: root/vespamalloc/CMakeLists.txt
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2022-02-07 18:53:38 +0100
committerTor Egge <Tor.Egge@online.no>2022-02-07 18:53:38 +0100
commit6fcbf06b0d2802899406c1c9d2004b6403d046a2 (patch)
treeadd7ebac6da80735b301528a88333e9dd63fac5e /vespamalloc/CMakeLists.txt
parentbd0c959b2b87546b3ae3cd3016aefa2676a6d56f (diff)
Handle vespamalloc not being built.
Diffstat (limited to 'vespamalloc/CMakeLists.txt')
-rw-r--r--vespamalloc/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/vespamalloc/CMakeLists.txt b/vespamalloc/CMakeLists.txt
index 395e7ec6d5a..df8e38653bb 100644
--- a/vespamalloc/CMakeLists.txt
+++ b/vespamalloc/CMakeLists.txt
@@ -1,4 +1,6 @@
# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+if(NOT CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin" AND
+ NOT DEFINED VESPA_USE_SANITIZER)
add_compile_options(-fvisibility=hidden)
add_definitions(-DPARANOID_LEVEL=0)
@@ -25,4 +27,7 @@ vespa_define_module(
)
vespa_install_script(bin/parsememorydump.pl vespa-malloc-parse-memorydump.pl bin)
+else()
+install(DIRECTORY DESTINATION lib64/vespa)
+endif()
install(FILES etc/vespamalloc.conf PERMISSIONS OWNER_READ GROUP_READ WORLD_READ DESTINATION etc)