<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div style="" class="" id="yiv1793304434"><div style="" class=""><div class="" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt;"><div style="" class="">Hi there.<br style="">(apologies if this appears twice.  The first time I tried to send it it was bounced back telling me I wasn't allowed to post to this list):<br style="" class=""><br style="" class=""></div><div style="" class="">I've
 just been trying to get OpenAL Soft to build on Windows 7 using Visual 
Studio 2013. Trying to generate a solution with CMake fails to find 
Direct Sound, despite my having the June 2010 SDK installed and trying 
to run cmake with:<br style="" class=""></div><br style="" class="">cmake -D DXSDK_DIR="C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)" -G "Visual Studio 12 2013 Win64" ..<br style="" class=""><br style="" class="">The problem seems to be in FindDSound.cmake, the call to find_library is only providing:<br style="" class=""><br style="" class="">PATHS "${DXSDK_DIR}/lib"<br style="" class=""><br style="" class="">My DirectX SDK does not have libraries in that directory.  They are in two subdirectories "x86" and
 "x64".<br style="" class=""><br style="" class="">The sensible fix for this appears to be, at the top of FindDSound.cmake, add:<br><br style="" class=""># Determine platform architecture<br style="" class="">IF (CMAKE_SIZEOF_VOID_P EQUAL 8 )<br style="" class="">  SET(ARCHITECTURE "x64")<br style="" class="">ELSE()<br style="" class="">  SET(ARCHITECTURE "x86")<br style="" class="">ENDIF()<br style="" class=""><br style="" class="">Then change the line that reads:<br style="" class="">             PATHS "${DXSDK_DIR}/lib"<br style="" class="">To:<br style="" class="">             PATHS "${DXSDK_DIR}/lib" "${DXSDK_DIR}/lib/${ARCHITECTURE}"<br style="" class=""><br style="" class="">After making this change Direct Sound is found and OpenAL Soft appears to compile (I've not yet had a chance to check it's working beyond
 that).  <br style="" class=""><br style="" class="">I'm somewhat surprised that this hasn't been picked up before so I can only conclude I've done something wrong.  Even though I have the above work around, it would be nice to know what the correct solution is.<br style="" class=""><br style="" class="">Thanks.</div></div></div><div style="" class="" id="yiv9659134671"><div style="" class=""><div class="" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt;"><div style="" class=""></div></div></div></div></div></body></html>