Skip to content

Commit 613c7f0

Browse files
committed
xxxx
1 parent 9dcecae commit 613c7f0

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

cmake/utils.cmake

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@ function(lua_source varname filename symbolname)
3434
endfunction()
3535

3636
macro(AppendFlags flags)
37-
foreach(flag ${ARGN})
38-
set(${flags} "${${flags}} ${flag}")
39-
endforeach()
37+
foreach(flag ${ARGN})
38+
message(STATUS "XXXX ${flags}")
39+
message(STATUS "XXXX flags")
40+
if (${flags})
41+
set(${flags} "${${flags}} ${flag}")
42+
else()
43+
set(${flags} "${flag}")
44+
endif()
45+
endforeach()
4046
endmacro()

tests/capi/CMakeLists.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,10 @@ target_link_libraries(
2727
>
2828
)
2929

30-
if (NOT LDFLAGS)
31-
set(LDFLAGS)
32-
endif()
33-
3430
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
3531
AppendFlags(LDFLAGS ${CMAKE_C_FLAGS_DEBUG})
3632
endif()
33+
message(STATUS "LDFLAGS ${LDFLAGS}")
3734

3835
if (ENABLE_ASAN)
3936
AppendFlags(LDFLAGS -fsanitize=address)

0 commit comments

Comments
 (0)