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)
|
list (APPEND backtrace_files execinfo)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
find_program(ADDR2LINE NAMES addr2line)
|
if (NOT WIN32)
|
||||||
if (ADDR2LINE)
|
find_program(ADDR2LINE NAMES addr2line)
|
||||||
add_definitions(-DADDR2LINE="${ADDR2LINE}")
|
if (ADDR2LINE)
|
||||||
endif()
|
add_definitions(-DADDR2LINE="${ADDR2LINE}")
|
||||||
|
endif()
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
|
||||||
##-----------------------------------------------------------------------------
|
##-----------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user