mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-26 16:56:19 +00:00
Changed: Search in default paths if DXSDK_DIR is not defined
This commit is contained in:
parent
130b431043
commit
874b39b05a
1 changed files with 10 additions and 5 deletions
|
@ -14,17 +14,22 @@ FIND_PATH(DXSDK_DIR
|
||||||
"Include/dxsdkver.h"
|
"Include/dxsdkver.h"
|
||||||
PATHS
|
PATHS
|
||||||
"$ENV{DXSDK_DIR}"
|
"$ENV{DXSDK_DIR}"
|
||||||
|
"C:/Program Files (x86)/Microsoft DirectX SDK (June 2010)"
|
||||||
|
"C:/Program Files/Microsoft DirectX SDK (June 2010)"
|
||||||
|
"C:/Program Files (x86)/Microsoft DirectX SDK (February 2010)"
|
||||||
|
"C:/Program Files/Microsoft DirectX SDK (February 2010)"
|
||||||
|
"C:/Program Files (x86)/Microsoft DirectX SDK (November 2007)"
|
||||||
|
"C:/Program Files/Microsoft DirectX SDK (November 2007)"
|
||||||
|
"C:/Program Files (x86)/Microsoft DirectX SDK"
|
||||||
|
"C:/Program Files/Microsoft DirectX SDK"
|
||||||
)
|
)
|
||||||
|
|
||||||
MACRO(FIND_DXSDK_LIBRARY MYLIBRARY MYLIBRARYNAME)
|
MACRO(FIND_DXSDK_LIBRARY MYLIBRARY MYLIBRARYNAME)
|
||||||
FIND_LIBRARY(${MYLIBRARY}
|
FIND_LIBRARY(${MYLIBRARY}
|
||||||
NAMES ${MYLIBRARYNAME}
|
NAMES ${MYLIBRARYNAME}
|
||||||
PATHS
|
PATHS
|
||||||
"${DXSDK_LIBRARY_DIR}"
|
"${DXSDK_LIBRARY_DIR}"
|
||||||
"$ENV{DXSDK_DIR}"
|
)
|
||||||
"$ENV{DXSDK_DIR}/Lib"
|
|
||||||
"$ENV{DXSDK_DIR}/Lib/x86"
|
|
||||||
)
|
|
||||||
ENDMACRO(FIND_DXSDK_LIBRARY MYLIBRARY MYLIBRARYNAME)
|
ENDMACRO(FIND_DXSDK_LIBRARY MYLIBRARY MYLIBRARYNAME)
|
||||||
|
|
||||||
IF(DXSDK_DIR)
|
IF(DXSDK_DIR)
|
||||||
|
|
Loading…
Reference in a new issue