remove -fvisibility-inlines-hidden from CUDA compiler flags
authorVladislav Vinogradov <vlad.vinogradov@itseez.com>
Wed, 13 Aug 2014 14:08:48 +0000 (18:08 +0400)
committerVladislav Vinogradov <vlad.vinogradov@itseez.com>
Wed, 13 Aug 2014 14:08:48 +0000 (18:08 +0400)
it generates warning

cmake/OpenCVDetectCUDA.cmake

index 2685171..67a94c3 100644 (file)
@@ -188,6 +188,8 @@ if(CUDA_FOUND)
       # we remove -frtti because it's used for C++ compiler
       # but NVCC uses C compiler by default
       string(REPLACE "-frtti" "" ${var} "${${var}}")
+
+      string(REPLACE "-fvisibility-inlines-hidden" "" ${var} "${${var}}")
     endforeach()
 
     if(BUILD_SHARED_LIBS)