mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-10-31 15:20:10 +00:00
21 lines
398 B
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)
|