mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-01-08 22:05:37 +00:00
Determine what architecture the compiler is for msvc by how large our void pointers are.
This commit is contained in:
parent
f1e502c8f5
commit
6d85bc9467
|
@ -16,11 +16,14 @@ IF(MSVC)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
# !FIXME! Actually detect compiler architecture version....
|
# !FIXME! Actually detect compiler architecture version....
|
||||||
SET(MSVC_ARCHITECTURE_STRING x64)
|
IF( CMAKE_SIZEOF_VOID_P EQUAL 8 )
|
||||||
|
SET(MSVC_ARCHITECTURE_STRING x64)
|
||||||
|
ELSE()
|
||||||
|
SET(MSVC_ARCHITECTURE_STRING x86)
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
SET(MSVC_LIB_DIR "${MSVC_INSTALL_PATH}/lib/${MSVC_ARCHITECTURE_STRING}/${MSVC_VERSION_STRING}")
|
SET(MSVC_LIB_DIR "${MSVC_INSTALL_PATH}/lib/${MSVC_ARCHITECTURE_STRING}/${MSVC_VERSION_STRING}")
|
||||||
SET(CMAKE_LIBRARY_PATH "${CMAKE_LIBRARY_PATH};${MSVC_LIB_DIR}")
|
SET(CMAKE_LIBRARY_PATH "${CMAKE_LIBRARY_PATH};${MSVC_LIB_DIR}")
|
||||||
|
|
||||||
ENDIF(MSVC)
|
ENDIF(MSVC)
|
||||||
|
|
||||||
ADD_SUBDIRECTORY(BPTCEncoder)
|
ADD_SUBDIRECTORY(BPTCEncoder)
|
||||||
|
|
Loading…
Reference in a new issue