mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 21:59:54 -06:00
fix if logic for null defs
This commit is contained in:
@@ -170,7 +170,7 @@ bool cmIfCommand::InitialPass(std::vector<std::string> const& args)
|
||||
cmRegularExpression regEntry(args[2].c_str());
|
||||
|
||||
// check for black line or comment
|
||||
if (def && !regEntry.find(def))
|
||||
if (!def || !regEntry.find(def))
|
||||
{
|
||||
f = new cmIfFunctionBlocker();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user