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