polserver/cmake/StackWalker.cmake

29 lines
597 B
CMake
Raw Permalink Normal View History

# windows only: build stackwalker
if (NOT ${windows})
return()
endif()
set(stackdir ${POL_EXT_LIB_DIR}/StackWalker-v14)
set(libstackwalk_sources
${stackdir}/StackWalker/StackWalker.cpp
${stackdir}/StackWalker/StackWalker.h
)
set(lib_name libstackwalk)
add_library(${lib_name} STATIC
EXCLUDE_FROM_ALL
${${lib_name}_sources}
)
set_compile_flags(${lib_name} 0)
if (${windows})
target_compile_options(${lib_name} PRIVATE
/wd4091 #typedef
/wd4996 #deprecated
)
endif()
set_target_properties (${lib_name} PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES ${stackdir}
FOLDER 3rdParty
)