VTK
9.1.0
|
Go to the source code of this file.
Functions | |
function | vtk_detect_library_type (output) |
Detect library type of a library. More... | |
function | vtk_detect_library_shared (name, target) |
Detect whether an imported target is shared or not. More... | |
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.
Definition at line 16 of file vtkDetectLibraryType.cmake.
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.
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.