From c2e3c917eeb07f3aa4c5aa4bf0de8d090f42c7d3 Mon Sep 17 00:00:00 2001 From: Daniel Seiller Date: Wed, 20 Nov 2019 20:52:43 +0100 Subject: [PATCH] Link against dxerr8 for error handling --- ScrapHacks/ScrapHack/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ScrapHacks/ScrapHack/CMakeLists.txt b/ScrapHacks/ScrapHack/CMakeLists.txt index 3fd10d9..0e1648f 100644 --- a/ScrapHacks/ScrapHack/CMakeLists.txt +++ b/ScrapHacks/ScrapHack/CMakeLists.txt @@ -14,9 +14,11 @@ link_directories(AFTER ${SOURCE_DIR}/8.0/lib/) add_compile_definitions(_CRT_SECURE_NO_WARNINGS) add_compile_definitions(POINTER_64=__ptr64) add_library(ScrapHack SHARED ScrapHack.cpp dllmain.cpp) +add_dependencies(ScrapHack DirectX) target_link_libraries(ScrapHack d3d8 d3dx8 + dxerr8 legacy_stdio_definitions) target_compile_features(ScrapHack PUBLIC cxx_std_11) install(TARGETS ScrapHack DESTINATION bin)