Commit 1c8728b7 authored by Davis King's avatar Davis King

Changed cmake script to avoid warnings from visual studio.

parent a12e5842
......@@ -539,8 +539,10 @@ if (NOT TARGET dlib)
if (CMAKE_POSITION_INDEPENDENT_CODE)
# sometimes this setting isn't propagated to NVCC, which then causes the
# compile to fail. So make sure it's propagated.
if (NOT MSVC) # Visual studio doesn't have -fPIC so don't do it in that case.
list(APPEND CUDA_NVCC_FLAGS "-Xcompiler -fPIC")
endif()
endif()
include(cmake_utils/test_for_cudnn/find_cudnn.txt)
......
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