summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-08-15 14:26:06 -0700
committerChris Robinson <[email protected]>2014-08-15 14:26:06 -0700
commitdd1df64537b11becd910e4c84f0e8e41cc6e51da (patch)
treedf8ca8115d448aa9d3def2146f8b0d4075f5f64c /cmake
parentd60ce358462d5418a85effccfc83f26570024834 (diff)
Search for the correct include and lib directories for the DX SDK
And only set them when needed.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindDSound.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmake/FindDSound.cmake b/cmake/FindDSound.cmake
index 36cdf4b5..0ddf98aa 100644
--- a/cmake/FindDSound.cmake
+++ b/cmake/FindDSound.cmake
@@ -9,14 +9,16 @@
#
find_path(DSOUND_INCLUDE_DIR
- PATHS "${DXSDK_DIR}/include"
NAMES dsound.h
+ PATHS "${DXSDK_DIR}"
+ PATH_SUFFIXES include
DOC "The DirectSound include directory"
)
find_library(DSOUND_LIBRARY
- PATHS "${DXSDK_DIR}/lib"
NAMES dsound
+ PATHS "${DXSDK_DIR}"
+ PATH_SUFFIXES lib lib/x86 lib/x64
DOC "The DirectSound library"
)