mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 11:10:21 +08:00
fixed compiler warning
removed -fvisibility-inlines-hidden compiler option for CUDA sources
This commit is contained in:
parent
3eeaa9189c
commit
9488ed46ee
@ -160,6 +160,10 @@ if(CUDA_FOUND)
|
|||||||
|
|
||||||
# we remove -Wsign-promo as it generates warnings under linux
|
# we remove -Wsign-promo as it generates warnings under linux
|
||||||
string(REPLACE "-Wsign-promo" "" ${var} "${${var}}")
|
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()
|
endforeach()
|
||||||
|
|
||||||
if(BUILD_SHARED_LIBS)
|
if(BUILD_SHARED_LIBS)
|
||||||
|
Loading…
Reference in New Issue
Block a user