mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Update to newer CMake function interfaces
Per suggestions from Rob Maynard.
This commit is contained in:
parent
434f54195a
commit
3dae95f22a
@ -624,7 +624,7 @@ function(vtkm_library)
|
||||
set_property(TARGET ${lib_name} APPEND PROPERTY
|
||||
INCLUDE_DIRECTORIES ${VTKm_INCLUDE_DIRS} )
|
||||
|
||||
target_link_libraries(${lib_name} ${VTKm_LIBRARIES})
|
||||
target_link_libraries(${lib_name} PUBLIC ${VTKm_LIBRARIES})
|
||||
|
||||
target_compile_options(${lib_name} PRIVATE ${VTKm_COMPILE_OPTIONS})
|
||||
|
||||
@ -641,10 +641,9 @@ function(vtkm_library)
|
||||
endif()
|
||||
|
||||
if(VTKm_EXTRA_COMPILER_WARNINGS)
|
||||
set_property(TARGET ${lib_name}
|
||||
APPEND PROPERTY COMPILE_FLAGS
|
||||
${CMAKE_CXX_FLAGS_WARN_EXTRA}
|
||||
)
|
||||
target_compile_options(${lib_name}
|
||||
PRIVATE ${CMAKE_CXX_FLAGS_WARN_EXTRA}
|
||||
)
|
||||
endif(VTKm_EXTRA_COMPILER_WARNINGS)
|
||||
|
||||
generate_export_header(${lib_name})
|
||||
|
Loading…
Reference in New Issue
Block a user