|
@@ -1018,7 +1018,7 @@ std::string cmSystemTools::ComputeCertificateThumbprint(
|
|
|
{
|
|
{
|
|
|
std::string thumbprint;
|
|
std::string thumbprint;
|
|
|
|
|
|
|
|
-#ifdef _WIN32
|
|
|
|
|
|
|
+#if defined(CMAKE_BUILD_WITH_CMAKE) && defined(_WIN32)
|
|
|
BYTE* certData = NULL;
|
|
BYTE* certData = NULL;
|
|
|
CRYPT_INTEGER_BLOB cryptBlob;
|
|
CRYPT_INTEGER_BLOB cryptBlob;
|
|
|
HCERTSTORE certStore = NULL;
|
|
HCERTSTORE certStore = NULL;
|