Skip to content

Commit 4dbe19c

Browse files
committed
Fix building the custom jemalloc
The "make install" step is executed always and all UMF tests are re-linked also always now because of an incorrect dependence. This patch fixes that. Signed-off-by: Lukasz Dorau <[email protected]>
1 parent 77f0cb5 commit 4dbe19c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,13 @@ else()
164164
add_custom_command(
165165
COMMAND make
166166
WORKING_DIRECTORY ${jemalloc_targ_SOURCE_DIR}
167-
OUTPUT ${jemalloc_targ_SOURCE_DIR}/lib/libjemalloc.la
167+
OUTPUT ${jemalloc_targ_SOURCE_DIR}/lib/libjemalloc.a
168168
DEPENDS ${jemalloc_targ_SOURCE_DIR}/Makefile)
169169
add_custom_command(
170170
COMMAND make install
171171
WORKING_DIRECTORY ${jemalloc_targ_SOURCE_DIR}
172172
OUTPUT ${jemalloc_targ_BINARY_DIR}/lib/libjemalloc.a
173-
DEPENDS ${jemalloc_targ_SOURCE_DIR}/lib/libjemalloc.la)
173+
DEPENDS ${jemalloc_targ_SOURCE_DIR}/lib/libjemalloc.a)
174174

175175
add_custom_target(jemalloc_prod
176176
DEPENDS ${jemalloc_targ_BINARY_DIR}/lib/libjemalloc.a)

0 commit comments

Comments
 (0)