cmake: don't locate addr2line for win32 builds
This commit is contained in:
parent
5d728859e7
commit
59a32aede6
@ -48,10 +48,12 @@ if (BACKTRACE_LIB)
|
||||
list (APPEND backtrace_files execinfo)
|
||||
endif ()
|
||||
|
||||
find_program(ADDR2LINE NAMES addr2line)
|
||||
if (ADDR2LINE)
|
||||
add_definitions(-DADDR2LINE="${ADDR2LINE}")
|
||||
endif()
|
||||
if (NOT WIN32)
|
||||
find_program(ADDR2LINE NAMES addr2line)
|
||||
if (ADDR2LINE)
|
||||
add_definitions(-DADDR2LINE="${ADDR2LINE}")
|
||||
endif()
|
||||
endif ()
|
||||
|
||||
|
||||
##-----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user