[vtk-developers] BUILD_SHARED_LIBS CMake help text

David Doria daviddoria at gmail.com
Tue May 10 16:27:26 EDT 2011


On Tue, May 10, 2011 at 4:02 PM, Pebay, Philippe P <pppebay at sandia.gov> wrote:
> Yes, this seems like a typo in the documentation.

Hm, the variable seems to be defined in:

VTK/Utilities/verdict/CMakeLists.txt:
option(BUILD_SHARED_LIBS "Build Verdict with shared libraries." OFF)

Should this line be moved up to

VTK/CMakeLists.txt
option(BUILD_SHARED_LIBS "Build VTK with shared libraries." OFF)
?

Also, there seems to be a

VTK_BUILD_SHARED_LIBS

preprocessor definition that gets set to the value of
BUILD_SHARED_LIBS by CMake/vtkSelectSharedLibraries.cmake . Why don't
the c++ files just check #ifdef BUILD_SHARED_LIBS directly?

David



More information about the vtk-developers mailing list