polserver/cmake/StackWalker.cmake
Fernando Rozenblit 815bb6f856
Cmake and zlib cleanup (#219)
* Added explicit path to the lib/ folder.

* Added use_zlib() function to the cmake files. Changed the remaining cmake files to use POL_EXT_LIB_DIR.

* Removed relative path to zlib. It seems we were always using our zlib header (even when linking to the system zlib on linux!).
2020-08-14 22:16:02 +02:00

21 lines
452 B
CMake

# windows only: build stackwalker
set(stackwalk_sources
${POL_EXT_LIB_DIR}/StackWalker/StackWalker.cpp
${POL_EXT_LIB_DIR}/StackWalker/StackWalker.h
)
set(lib_name stackwalk)
add_library(${lib_name} STATIC
${${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 FOLDER 3rdParty)