1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
include(RunCMake) if(SYSTEM_NAME MATCHES "^(([^k].*)?BSD|DragonFly)$") set(EXPECT_BSD 1) endif() foreach(case Opt Root Usr UsrLocal ) if(EXPECT_BSD) set(RunCMake-stderr-file ${case}-BSD-stderr.txt) endif() run_cmake(${case}) endforeach()