Skip to content

Commit

Permalink
Merge pull request #40 from Jiboo/master
Browse files Browse the repository at this point in the history
Don't append definitions if already cached
  • Loading branch information
bombela authored Sep 27, 2016
2 parents dbb0e77 + 998f176 commit 54fc561
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions BackwardMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@ macro(map_definitions var_prefix define_prefix)
endforeach()
endmacro()

map_definitions("STACK_WALKING_" "BACKWARD_HAS_" UNWIND BACKTRACE)
map_definitions("STACK_DETAILS_" "BACKWARD_HAS_" BACKTRACE_SYMBOL DW BFD)
if (NOT BACKWARD_DEFINITIONS)
map_definitions("STACK_WALKING_" "BACKWARD_HAS_" UNWIND BACKTRACE)
map_definitions("STACK_DETAILS_" "BACKWARD_HAS_" BACKTRACE_SYMBOL DW BFD)
endif()

foreach(def ${BACKWARD_DEFINITIONS})
message(STATUS "${def}")
Expand Down

0 comments on commit 54fc561

Please sign in to comment.