[Cmake] Target options?

Bill Hoffman bill.hoffman at kitware.com
Mon Aug 19 08:17:28 EDT 2002


Try this:

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


-Bill

At 12:04 PM 8/18/2002 +0100, John Biddiscombe wrote:
>To improve vtk build times, I've modified my local WrapTcl to include some rudimentary precompiled header support. To make it work, I need to add an option like the following
>  -H="$ENV{TEMP}/vtk/vtk.csm"
>to the build (CXX flags).
>
>If I add this command to LocalUserOptions in VTK\Common (&etc), the tcl builds like lightning, but it gets added to the standard VTK\Commmon build too, so the vtkCommon.dll builds slowly as it doesn't have the source code mods and tries to update the precompiled header symbol file on every source.
>
>How can I add an option to a target like the tcl build, but not add it to the other targets?
>
>thanks
>
>JB
>
>
>_______________________________________________
>Cmake mailing list
>Cmake at public.kitware.com
>http://public.kitware.com/mailman/listinfo/cmake 




More information about the CMake mailing list