VTK  9.1.0
Functions
vtkDetectLibraryType.cmake File Reference

Go to the source code of this file.

Functions

function vtk_detect_library_type (output)
 Detect library type of a library.
 
function vtk_detect_library_shared (name, target)
 Detect whether an imported target is shared or not.
 

Function Documentation

◆ vtk_detect_library_type()

function vtk_detect_library_type ( output  )

Detect library type of a library.

Sometimes it needs to be known whether a library is shared or static on a system in order to change the usage requirements of an imported target representing that library. This commonly occurs between static and shared builds that share a set of installed headers. This function returns one of SHARED, STATIC, or UNKNOWN into the variable passed as the first argument.

PATH <path>)
function vtk_detect_library_type(output)
Detect library type of a library.

Definition at line 16 of file vtkDetectLibraryType.cmake.

◆ vtk_detect_library_shared()

function vtk_detect_library_shared ( name  ,
target   
)

Detect whether an imported target is shared or not.

This is intended for use with modules using vtk_module_third_party_external to detect whether that module is shared or not. Generally, this should be replaced with the Find module providing this information and modifying the usage requirements as necessary instead, but it is not always possible.

boost::graph_traits< vtkGraph * >::vertex_descriptor target(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
function vtk_detect_library_shared(name, target)
Detect whether an imported target is shared or not.

Sets <name>_is_shared in the caller's scope if <target> is a shared library. If it is an UNKNOWN_LIBRARY, a cache variable is exposed to allow the user to provide the information if it ends up breaking something.

Definition at line 114 of file vtkDetectLibraryType.cmake.