Determine what architecture the compiler is for msvc by how large our void pointers are.

This commit is contained in:
Pavel Krajcevski 2013-01-26 18:04:43 -05:00
parent f1e502c8f5
commit 6d85bc9467

View File

@ -16,11 +16,14 @@ IF(MSVC)
ENDIF()
# !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(CMAKE_LIBRARY_PATH "${CMAKE_LIBRARY_PATH};${MSVC_LIB_DIR}")
ENDIF(MSVC)
ADD_SUBDIRECTORY(BPTCEncoder)