[Cmake] Tip of the Day

Bill Hoffman bill.hoffman at kitware.com
Fri May 4 10:42:01 EDT 2001


The OPTION command can be used to disable parts of your system build.


For example, you can remove subdirectories like this:

OPTION(BUILD_TESTING "Build the testing tree for Insight." "On")

IF(BUILD_TESTING)
SUBDIRS( Code HTML )
ENDIF(BUILD_TESTING)


-Bill





More information about the CMake mailing list