Commit eb0cb9eb authored by Adam Procter's avatar Adam Procter Committed by Robert Kimball

Exit build with error message when NGRAPH_USE_PREBUILT_LLVM is requested on non-Linux OSes (#560)

* Exit build with error message when NGRAPH_USE_PREBUILT_LLVM is requested on non-Linux OSes
parent ebdca8d8
...@@ -16,8 +16,11 @@ ...@@ -16,8 +16,11 @@
include(ExternalProject) include(ExternalProject)
if((NGRAPH_CPU_ENABLE OR NGRAPH_GPU_ENABLE) AND (NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin") AND if (NGRAPH_CPU_ENABLE AND (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") OR (${CMAKE_SYSTEM_NAME} MATCHES "Windows"))
(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Windows")) message(FATAL_ERROR "The NGRAPH_USE_PREBUILT_LLVM option is not supported on this platform.")
endif()
if (NGRAPH_CPU_ENABLE)
message(STATUS "Fetching LLVM from llvm.org") message(STATUS "Fetching LLVM from llvm.org")
# Override default LLVM binaries # Override default LLVM binaries
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment