Skip to content

Commit cba9a90

Browse files
authored
Fix snmalloc linking regression (#7161)
1 parent 611c7f1 commit cba9a90

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,12 @@ endif()
119119
option(USE_SNMALLOC "Link against snmalloc" ON)
120120
if(USE_SNMALLOC)
121121
set(SNMALLOC_BUILD_TESTING OFF)
122-
set(SNMALLOC_STATIC_LIBRARY_PREFIX "")
122+
# It is necessary to override the cached value, to ensure that the snmalloc
123+
# CMakeLists.txt picks up this change and applies it correctly.
124+
set(SNMALLOC_STATIC_LIBRARY_PREFIX
125+
""
126+
CACHE STRING "Prefix for snmalloc static library"
127+
)
123128
add_subdirectory(3rdparty/exported/snmalloc EXCLUDE_FROM_ALL)
124129
endif()
125130

0 commit comments

Comments
 (0)