Registry edit error during CMake config

Hi all, First, let me thank you for all the great software and support over the years!

Latest CMake and ITK. I am trying to configure and build on a Corporate Windows 10 computer that has (IMO) fairly mild lockdown of Admin rights. Any thoughts how to workaround the following error?

Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045.
ERROR: Registry editing has been disabled by your administrator.

CMake Error at CMakeLists.txt:82 (string):
  string sub-command REGEX, mode MATCH needs at least 5 arguments total to
  command.

Thank you,
Greg

Forgot to mention. CMake generate and build of DCMTK was not a problem. So I feel CMake might not be the problem.

You could try “adding an entry” called ITK_SKIP_PATH_LENGTH_CHECKS of type BOOL, and set it to OFF. See the logic here:

Thank you dzenanz. Regrettably that did not work.

I vaguely recall that ITK stores recently used source(?) build(?) paths in the registry, so that repeated builds from the same directories are more convenient. Might this be related?

What version of CMake are you using? Could it be too old, too new, customized somehow? This is the line 82 your error message blames:

Or maybe the reg.exe is different for you?

Did you make any progress? Sharing the solution, if you have it, is good for posterity (people searching for a solution to a similar problem).

1 Like

Yes! I’m sorry I didn’t post back. Setting ITK_SKIP_PATH_LENGTH_CHECKS to ON did work, I made a mistake by not deleting the build directory the first time I tried that. Thank you Dzenan, this is Solved.

1 Like