Skip to content

Commit 511b8d4

Browse files
committed
Link to math when using memcheck.
1 parent 7ccb4d6 commit 511b8d4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ if(NOT IS_RELEASE_BUILD AND NOT MSVC)
2828
add_link_options(LINKER:--wrap=malloc,--wrap=realloc,--wrap=calloc,--wrap=free,--wrap=strdup,--wrap=wcsdup,--wrap=scandir,--wrap=getline)
2929
add_subdirectory(ext/memcheck ${DEPENDENCY_BUILD_DIR_NAME}/memcheck EXCLUDE_FROM_ALL)
3030
link_libraries(memcheck)
31+
link_libraries(m)
3132
else()
3233
set(ENGINE_MEMCHECK_ENABLED OFF CACHE BOOL "" FORCE)
3334
endif()

0 commit comments

Comments
 (0)