@@ -16,14 +16,14 @@ Module defines the following `IMPORTED` target(s):
1616* `Cclient_FOUND` - Whether the package has been found.
1717* `Cclient_INCLUDE_DIRS` - Include directories needed to use this package.
1818* `Cclient_LIBRARIES` - Libraries needed to link to the package library.
19+ * `HAVE_IMAP2000` - Whether c-client version is 2000 or newer. If true,
20+ c-client.h should be included instead of only rfc822.h on prior versions.
21+ * `HAVE_IMAP2001` - Whether c-client version is 2001 to 2004.
1922
2023## Cache variables
2124
2225* `Cclient_INCLUDE_DIR` - Directory containing package library headers.
2326* `Cclient_LIBRARY` - The path to the package library.
24- * `HAVE_IMAP2000` - Whether c-client version is 2000 or newer. If true,
25- c-client.h should be included instead of only rfc822.h on prior versions.
26- * `HAVE_IMAP2001` - Whether c-client version is 2001 to 2004.
2727* `HAVE_IMAP2004` - Whether c-client version is 2004 or newer.
2828* `HAVE_NEW_MIME2TEXT` - Whether utf8_mime2text() has new signature.
2929* `HAVE_RFC822_OUTPUT_ADDRESS_LIST` - Whether function
@@ -357,10 +357,7 @@ endif()
357357
358358# Check whether c-client version is 2000 or newer.
359359if (EXISTS ${Cclient_INCLUDE_DIR} /c-client.h)
360- set (
361- HAVE_IMAP2000 1
362- CACHE INTERNAL "Whether c-client version is 2000 or newer"
363- )
360+ set (HAVE_IMAP2000 TRUE )
364361endif ()
365362
366363block()
@@ -378,10 +375,7 @@ block()
378375
379376 if (imapsslport_results)
380377 message (CHECK_PASS "yes" )
381- set (
382- HAVE_IMAP2001 1
383- CACHE INTERNAL "Whether c-client version is 2001 to 2004"
384- )
378+ set (HAVE_IMAP2001 TRUE )
385379 else ()
386380 message (CHECK_FAIL "no" )
387381 endif ()
0 commit comments