mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* every 3rd party lib is now excluded from "all" build, meaning it gets only build when actually used. removed the cmake option to partially build, due to the above changes this is no more needed, just build the target streamlined 3rdparty target names, they all start with lib now * renamed escriptgrammar target to escriptgrammar_codegen for clarification fixed dependency name * corrected sources name * readded missing include
28 lines
597 B
CMake
28 lines
597 B
CMake
# 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
|
|
)
|