2018-02-24 22:34:55 +01:00
|
|
|
# windows only: build stackwalker
|
2024-02-01 08:07:37 +01:00
|
|
|
if (NOT ${windows})
|
|
|
|
|
return()
|
|
|
|
|
endif()
|
2024-01-27 09:06:23 +01:00
|
|
|
set(stackdir ${POL_EXT_LIB_DIR}/StackWalker-v14)
|
|
|
|
|
set(libstackwalk_sources
|
|
|
|
|
${stackdir}/StackWalker/StackWalker.cpp
|
|
|
|
|
${stackdir}/StackWalker/StackWalker.h
|
2018-02-24 22:34:55 +01:00
|
|
|
)
|
2024-01-27 09:06:23 +01:00
|
|
|
set(lib_name libstackwalk)
|
2018-02-24 22:34:55 +01:00
|
|
|
|
|
|
|
|
add_library(${lib_name} STATIC
|
2024-02-01 08:07:37 +01:00
|
|
|
EXCLUDE_FROM_ALL
|
2018-02-24 22:34:55 +01:00
|
|
|
${${lib_name}_sources}
|
|
|
|
|
)
|
|
|
|
|
set_compile_flags(${lib_name} 0)
|
|
|
|
|
|
|
|
|
|
if (${windows})
|
|
|
|
|
target_compile_options(${lib_name} PRIVATE
|
|
|
|
|
/wd4091 #typedef
|
|
|
|
|
/wd4996 #deprecated
|
|
|
|
|
)
|
|
|
|
|
endif()
|
2018-02-25 20:30:30 +01:00
|
|
|
|
2024-01-27 09:06:23 +01:00
|
|
|
set_target_properties (${lib_name} PROPERTIES
|
|
|
|
|
INTERFACE_INCLUDE_DIRECTORIES ${stackdir}
|
|
|
|
|
FOLDER 3rdParty
|
|
|
|
|
)
|