[HIPIFY][cmake][win] check for Visual Studio version

hipify-clang could be built by Visual Studio 14 2015 or higher.

[Reason]
hipify-clang contains c++14 features which are not supported even by the latest VS 2013 and the Platform Toolset "Visual C++ Compiler Nov 2013 CTP".
This commit is contained in:
emankov
2019-01-04 18:52:28 +03:00
rodzic 9145eb9e95
commit 207bbad778
+5
Wyświetl plik
@@ -1,6 +1,11 @@
cmake_minimum_required(VERSION 2.8.12)
project(hipify-clang)
if (MSVC AND MSVC_VERSION VERSION_LESS "1900")
message(SEND_ERROR "hipify-clang could be built by Visual Studio 14 2015 or higher.")
return()
endif()
find_package(LLVM REQUIRED)
message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}:")
message(STATUS " - CMake module path: ${LLVM_CMAKE_DIR}")