Skip to content

Commit 9dcecae

Browse files
committed
xxx
1 parent eb81a2c commit 9dcecae

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/capi/CMakeLists.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,13 @@ target_link_libraries(
2727
>
2828
)
2929

30-
# if (CMAKE_BUILD_TYPE STREQUAL "Debug")
31-
# AppendFlags(LDFLAGS ${CMAKE_C_FLAGS_DEBUG})
32-
# endif()
30+
if (NOT LDFLAGS)
31+
set(LDFLAGS)
32+
endif()
33+
34+
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
35+
AppendFlags(LDFLAGS ${CMAKE_C_FLAGS_DEBUG})
36+
endif()
3337

3438
if (ENABLE_ASAN)
3539
AppendFlags(LDFLAGS -fsanitize=address)

0 commit comments

Comments
 (0)