Skip to content

Commit ce77c22

Browse files
authored
Merge pull request #149 from Sichao25/yus/mallinfo_warning
Fixed deprecation warning related to mallinfo during build
2 parents 669870d + 6967393 commit ce77c22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ if(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU" OR ${CMAKE_CXX_COMPILER_ID} STREQUAL
158158
include(CheckCXXSymbolExists)
159159
check_cxx_symbol_exists(mallinfo2 "malloc.h" PUMIPIC_HAS_MALLINFO2)
160160
if(PUMIPIC_HAS_MALLINFO2)
161-
target_compile_definitions(support INTERFACE -DPUMIPIC_HAS_MALLINFO2)
161+
target_compile_definitions(support PUBLIC -DPUMIPIC_HAS_MALLINFO2)
162162
endif()
163163
endif()
164164

0 commit comments

Comments
 (0)