fixed compiler warning

removed -fvisibility-inlines-hidden compiler option for CUDA sources
pull/900/head
Vladislav Vinogradov 12 years ago
parent 3eeaa9189c
commit 9488ed46ee
  1. 4
      cmake/OpenCVDetectCUDA.cmake

@ -160,6 +160,10 @@ if(CUDA_FOUND)
# we remove -Wsign-promo as it generates warnings under linux
string(REPLACE "-Wsign-promo" "" ${var} "${${var}}")
# we remove -fvisibility-inlines-hidden because it's used for C++ compiler
# but NVCC uses C compiler by default
string(REPLACE "-fvisibility-inlines-hidden" "" ${var} "${${var}}")
endforeach()
if(BUILD_SHARED_LIBS)

Loading…
Cancel
Save