Commit c090f40e authored by Michael Kuron's avatar Michael Kuron Committed by GitHub

Properly check for OS X sysroot

parent ab592741
......@@ -171,6 +171,10 @@ if (WITH_CUDA)
list(APPEND CUDA_NVCC_FLAGS "-D_MWAITXINTRIN_H_INCLUDED -D_FORCE_INLINES")
endif()
SET(CUDA_PROPAGATE_HOST_FLAGS OFF)
if (CMAKE_OSX_SYSROOT)
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -Xcompiler -isysroot -Xcompiler ${CMAKE_OSX_SYSROOT}")
endif()
endif(CUDA_FOUND)
endif()
endif(WITH_CUDA)
......
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