fixed compiler warning
authorVladislav Vinogradov <vlad.vinogradov@itseez.com>
Fri, 7 Jun 2013 09:34:33 +0000 (13:34 +0400)
committerVladislav Vinogradov <vlad.vinogradov@itseez.com>
Fri, 7 Jun 2013 09:34:33 +0000 (13:34 +0400)
removed -fvisibility-inlines-hidden compiler option for CUDA sources

cmake/OpenCVDetectCUDA.cmake

index 3233d65..c44c812 100644 (file)
@@ -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)