From 3c8e9a0c759a136ac8c5999b7e5c2c0c43319887 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Wed, 15 Sep 2021 22:45:50 +0400 Subject: [PATCH] Don't link anything for jemalloc on FreeBSD --- external/jemalloc/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/external/jemalloc/CMakeLists.txt b/external/jemalloc/CMakeLists.txt index c720bd6..0c0f0be 100644 --- a/external/jemalloc/CMakeLists.txt +++ b/external/jemalloc/CMakeLists.txt @@ -7,6 +7,10 @@ add_library(external_jemalloc INTERFACE IMPORTED GLOBAL) add_library(desktop-app::external_jemalloc ALIAS external_jemalloc) +if (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") + return() +endif() + if (DESKTOP_APP_USE_PACKAGED) find_package(PkgConfig REQUIRED) pkg_check_modules(JEMALLOC IMPORTED_TARGET jemalloc)