mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2024-11-27 23:44:26 +01: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()
|
||||
|
||||
# !FIXME! Actually detect compiler architecture version....
|
||||
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(CMAKE_LIBRARY_PATH "${CMAKE_LIBRARY_PATH};${MSVC_LIB_DIR}")
|
||||
|
||||
ENDIF(MSVC)
|
||||
|
||||
ADD_SUBDIRECTORY(BPTCEncoder)
|
||||
|
Loading…
Reference in New Issue
Block a user