Commit fceb6238 authored by marina.kolpakova's avatar marina.kolpakova

fix for 2504: WITH_CUDA disabled with OSX in 2.4.3.

parent 8579666b
...@@ -3,8 +3,13 @@ if(${CMAKE_VERSION} VERSION_LESS "2.8.3") ...@@ -3,8 +3,13 @@ if(${CMAKE_VERSION} VERSION_LESS "2.8.3")
return() return()
endif() endif()
if (NOT MSVC AND NOT CMAKE_COMPILER_IS_GNUCXX OR MINGW) if (WIN32 AND NOT MSVC)
message(STATUS "CUDA compilation was disabled (due to unsuppoted host compiler).") message(STATUS "CUDA compilation is disabled (due to only Visual Studio compiler suppoted on your platform).")
return()
endif()
if (CMAKE_COMPILER_IS_GNUCXX AND NOT APPLE AND CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
message(STATUS "CUDA compilation is disabled (due to Clang unsuppoted on your platform).")
return() return()
endif() endif()
......
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