You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OpenTTD-patches/cmake/FindDbgHelp.cmake

21 lines
398 B
CMake

include(CheckCXXSourceCompiles)
check_cxx_source_compiles("
#include <windows.h>
#include <dbghelp.h>
int main() {
STACKFRAME64 frame;
IMAGEHLP_SYMBOL64 *sym_info;
IMAGEHLP_MODULE64 module;
IMAGEHLP_LINE64 line;
return 0;
}"
DBGHELP_FOUND
)
if (DBGHELP_FOUND)
add_compile_options(
-DWITH_DBGHELP
)
endif (DBGHELP_FOUND)