I forgot to add that other TDE modules may expect to see HAVE_CRYPT defined as well, so it would probably be a good idea to pass HAVE_CRYPT as a #define to all TDE modules (i.e. add the fix the CMake code in the common cmake/ directory, not just to the CMake modules in kdebase).
Hmm, it will be a useless check when crypt is not needed. I think we should identify modules which need HAVE_CRYPT.
OK, it's up to you. :-) Grepping through the top-level TDE source directory should turn up any other crypt-dependent modules and applications.
Tim