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

Changed cmake script to avoid warnings from visual studio.

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