summaryrefslogtreecommitdiff
path: root/indra/llcharacter/llmultigesture.h
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2020-05-07 16:59:19 -0400
committerNat Goodspeed <nat@lindenlab.com>2020-05-07 16:59:19 -0400
commit92c70ff637da5fda06aaeb40914c77499bf2d0ce (patch)
tree6de9b8a3cea0b0e164cdfd6ab7e590f10189b5b6 /indra/llcharacter/llmultigesture.h
parent61ec84b1d88a5972cd8cc7ed0f5ad9f0ae92c27c (diff)
DRTVWR-476: Help DirectX.cmake cope with multiple SDK versions.
First, get rid of ancient cruft in the find_path() calls: on a 64-bit system, "$ENV{PROGRAMFILES}" expands to the 64-bit 'Program Files' directory rather than the 32-bit 'Program Files (x86)' directory, and none of the ancient cruft would be found there anyway. Empirically, find_path(dxdiag.h) is able to find the file using environment variables (INCLUDE from VS variables?), so it doesn't need the specific pathnames coded into that call. Once we find DIRECTX_INCLUDE_DIR, don't immediately insert it into include_directories: we've had troubles with incompatible Windows SDK versions (compile errors in Microsoft header files!) when DIRECTX_INCLUDE_DIR preceded the Windows SDK directory in the include path. The DIRECTX_FIND_QUIETLY logic seemed backwards: the message(STATUS) output was emitted only when DIRECTX_FIND_QUIETLY was false. Reverse that. The ancient cruft in find_path(dxguid.lib) was causing it to find the wrong (very old) DirectX library. Remove ancient cruft. But empirically, without that, even once we've found DIRECTX_INCLUDE_DIR, CMake could not implicitly find dxguid.lib. If the DirectX directory hierarchy were structured as .../version/Include and .../version/Lib, a relative pathname would have been sufficient hint. Unfortunately it's structured as .../Include/version and .../Lib/version, so a relative pathname would have to include the specific version. Instead, replace "/Include/" with "/Lib/". But even then, we have to drill down to the architecture-specific subdirectory based on ADDRESS_SIZE.
Diffstat (limited to 'indra/llcharacter/llmultigesture.h')
0 files changed, 0 insertions, 0 deletions