cmake: don't locate addr2line for win32 builds

This commit is contained in:
Danny Robson 2017-01-23 15:09:33 +11:00
parent 5d728859e7
commit 59a32aede6

View File

@ -48,10 +48,12 @@ if (BACKTRACE_LIB)
list (APPEND backtrace_files execinfo)
endif ()
find_program(ADDR2LINE NAMES addr2line)
if (ADDR2LINE)
if (NOT WIN32)
find_program(ADDR2LINE NAMES addr2line)
if (ADDR2LINE)
add_definitions(-DADDR2LINE="${ADDR2LINE}")
endif()
endif()
endif ()
##-----------------------------------------------------------------------------