mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-08 13:23:51 +00:00
Merge topic 'remove_rendering_cuda_visibility_warnings'
7233c422 Setup proper symbol visibility flags when building cuda files in a library Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !622
This commit is contained in:
commit
8a4352a8f6
@ -612,7 +612,12 @@ function(vtkm_library)
|
||||
# Cuda compiles do not respect target_include_directories
|
||||
cuda_include_directories(${VTKm_INCLUDE_DIRS})
|
||||
|
||||
cuda_add_library(${lib_name} ${VTKm_LIB_SOURCES} ${cuda_sources})
|
||||
if(BUILD_SHARED_LIBS AND NOT WIN32)
|
||||
set(compile_options -Xcompiler=${CMAKE_CXX_COMPILE_OPTIONS_VISIBILITY}hidden)
|
||||
endif()
|
||||
|
||||
cuda_add_library(${lib_name} ${VTKm_LIB_SOURCES} ${cuda_sources}
|
||||
OPTIONS "${compile_options}")
|
||||
|
||||
set(CUDA_NVCC_FLAGS ${old_nvcc_flags})
|
||||
set(CMAKE_CXX_FLAGS ${old_cxx_flags})
|
||||
|
Loading…
Reference in New Issue
Block a user