From 91c725d5c2dc2848c89c04da56503f41dfc2457f Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Sat, 11 Dec 2021 20:56:18 +0400 Subject: [PATCH] Use STEP_TARGETS in external_jemalloc_bundled --- external/jemalloc/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/external/jemalloc/CMakeLists.txt b/external/jemalloc/CMakeLists.txt index 9952083..713aad0 100644 --- a/external/jemalloc/CMakeLists.txt +++ b/external/jemalloc/CMakeLists.txt @@ -34,8 +34,9 @@ if (NOT JEMALLOC_FOUND) ExternalProject_Add(jemalloc SOURCE_DIR ${jemalloc_loc} CONFIGURE_COMMAND cd "${jemalloc_loc}" && export EXTRA_CFLAGS=-fstack-protector-all\ -fPIC\ -D_FORTIFY_SOURCE=2 && export EXTRA_CXXFLAGS=-fstack-protector-all\ -fPIC\ -D_FORTIFY_SOURCE=2 && CC=clang CXX=clang++ ./autogen.sh - INSTALL_COMMAND : BUILD_IN_SOURCE 1 + STEP_TARGETS build + EXCLUDE_FROM_ALL TRUE BUILD_BYPRODUCTS ${jemalloc_loc}/lib/libjemalloc.a ) @@ -56,7 +57,7 @@ if (NOT JEMALLOC_FOUND) pthread ) - add_dependencies(external_jemalloc_bundled jemalloc) + add_dependencies(external_jemalloc_bundled jemalloc-build) target_link_libraries(external_jemalloc INTERFACE