[vtk-developers] LocalUserOptions move?

John Biddiscombe jbiddiscombe at skippingmouse.co.uk
Tue Aug 20 06:51:22 EDT 2002


Hi all,

I'd like to move
INCLUDE (${VTK_BINARY_DIR}/Common/LocalUserOptions.cmake OPTIONAL)
INCLUDE (${VTK_SOURCE_DIR}/Common/LocalUserOptions.cmake OPTIONAL)
(&etc for each vtk dir)

from the middle of cmakelists.txt, to the end.

Why?

When I first advocated the use of LocalUseroptions.cmake in each directory of vtk, I wanted to remove certain files from the build, and needed it done before the VTK_WRAP_TCL(...) command was executed to prevent the removed files from appearing in the wrapped list.

Yeterday, Bill H (many thanks), showed me that I could use

SET_SOURCE_FILES_PROPERTIES( 
  ${CommonTCL_SRCS}
  COMPILE_FLAGS 
  -H="$ENV{TEMP}/vtk/vtk.csm"
)

to add flags to just the tcl sources and by doing this, I can add precompiled header support for part of vtk. (The vtkWrapTcl.exe is tweaked to insert extra lines in each source file - this only applies to my local build by the way).

However, this needs to appear after the WRAP_TCL command. 

Any objections to me moving it? Will it affect any other customizations? (earlier trouble can be resolved using the REMOVE command on the tcl srcs if necessary)

JB





More information about the vtk-developers mailing list