fixed compiler warning

removed -fvisibility-inlines-hidden compiler option for CUDA sources
This commit is contained in:
Vladislav Vinogradov 2013-06-07 13:34:33 +04:00
parent 3eeaa9189c
commit 9488ed46ee

View File

@ -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)