From c19d153b2501ca019d2f83189bec7fc16c0f953e Mon Sep 17 00:00:00 2001 From: mattraykowski Date: Fri, 23 Jul 2010 09:41:49 -0600 Subject: [PATCH] Changed: #842 Fix for nelmisc builds on Windows without DirectX in the VS paths. --- code/nel/src/misc/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/nel/src/misc/CMakeLists.txt b/code/nel/src/misc/CMakeLists.txt index bb404f88a..63f9f4330 100644 --- a/code/nel/src/misc/CMakeLists.txt +++ b/code/nel/src/misc/CMakeLists.txt @@ -16,6 +16,11 @@ IF(JPEG_FOUND) TARGET_LINK_LIBRARIES(nelmisc ${JPEG_LIBRARY}) ENDIF(JPEG_FOUND) +# For DirectInput (di_event_emitter) +IF(WIN32) + INCLUDE_DIRECTORIES(${DXSDK_INCLUDE_DIR}) +ENDIF(WIN32) + INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${PNG_INCLUDE_DIR} config_file) TARGET_LINK_LIBRARIES(nelmisc ${LIBXML2_LIBRARIES} ${PNG_LIBRARIES} ${WINSOCK2_LIB}) NL_DEFAULT_PROPS(nelmisc "Library: NeL Misc")