message(SEND_ERROR"Couldn't detect your compiler's architecture, you'll have to manually specify the GLFW library to use. (Try checking CMakeOutput.log to find out why.)")
endif()
if(MSVC11)#VisualC++2012
set(TMP_TOOLSET"v110")
elseif(MSVC12)#VisualC++2013
set(TMP_TOOLSET"v120")
else()
set(TMP_TOOLSET"UNSUPPORTED")
message(SEND_ERROR"We don't supply GLFW binaries for your version of MSVC, you might have to provide them yourself.")
endif()
set(TMP_TOOLSET"msvc_${TMP_TOOLSET}-${TMP_ARCH}")
if(MSVC14ANDARCHITECTURE_x86_64)
set(GLFW_VER"glfw-3.1.1-msvc2015_64")
elseif(MSVC12ANDARCHITECTURE_x86_64)
set(GLFW_VER"glfw-3.1.1-msvc2013_64")
else()
#Assumemingw
if(CMAKE_SIZEOF_VOID_PEQUAL8)
set(TMP_ARCH"x86_64")
elseif(CMAKE_SIZEOF_VOID_PEQUAL4)
set(TMP_ARCH"i686")
else()
set(TMP_ARCH"UNKNOWN")
message(SEND_ERROR"Couldn't detect your compiler's architecture, you'll have to manually specify the GLFW library to use.")
endif()
set(TMP_TOOLSET"mingw-${TMP_ARCH}")
message(FATAL_ERROR"No bundled GLFW binaries for your toolchain. Disable CITRA_USE_BUNDLED_GLFW and provide your own.")