File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -66,14 +66,16 @@ target_include_directories(osslsigncode PRIVATE ${OPENSSL_INCLUDE_DIR})
66
66
target_link_libraries (osslsigncode PRIVATE ${OPENSSL_LIBRARIES} )
67
67
68
68
# set cURL includes/libraries
69
- if (OPENSSL_VERSION VERSION_LESS "3.0.0" AND CURL_FOUND )
69
+ if (OPENSSL_VERSION VERSION_LESS "3.0.0" )
70
+ if (CURL_FOUND )
70
71
target_compile_definitions (osslsigncode PRIVATE ENABLE_CURL=1 )
71
72
target_include_directories (osslsigncode PRIVATE ${CURL_INCLUDE_DIRS} )
72
73
target_link_libraries (osslsigncode PRIVATE ${CURL_LIBRARIES} )
73
74
message (STATUS "cURL support enabled" )
74
- else (OPENSSL_VERSION VERSION_LESS "3.0.0" AND CURL_FOUND )
75
+ else (CURL_FOUND )
75
76
message (STATUS "cURL support disabled (library not found)" )
76
- endif (OPENSSL_VERSION VERSION_LESS "3.0.0" AND CURL_FOUND )
77
+ endif (CURL_FOUND )
78
+ endif (OPENSSL_VERSION VERSION_LESS "3.0.0" )
77
79
78
80
if (NOT ZLIB_FOUND )
79
81
message (FATAL_ERROR "Zlib library not found" )
Original file line number Diff line number Diff line change @@ -454,7 +454,7 @@ foreach(file ${files})
454
454
endforeach (file ${files} )
455
455
456
456
457
- if ((Python3_FOUND OR server_error ) AND CURL_FOUND )
457
+ if ((Python3_FOUND OR server_error ) AND ( OPENSSL_VERSION VERSION_GREATER_EQUAL "3.0.0" OR CURL_FOUND ) )
458
458
459
459
### Sign with Time-Stamp Authority ###
460
460
@@ -724,9 +724,9 @@ endforeach(ext ${extensions_nocat})
724
724
message (STATUS "Keep HTTP server after tests" )
725
725
endif (STOP_SERVER )
726
726
727
- else ((Python3_FOUND OR server_error ) AND CURL_FOUND )
727
+ else ((Python3_FOUND OR server_error ) AND ( OPENSSL_VERSION VERSION_GREATER_EQUAL "3.0.0" OR CURL_FOUND ) )
728
728
message (STATUS "CTest skips some tests" )
729
- endif ((Python3_FOUND OR server_error ) AND CURL_FOUND )
729
+ endif ((Python3_FOUND OR server_error ) AND ( OPENSSL_VERSION VERSION_GREATER_EQUAL "3.0.0" OR CURL_FOUND ) )
730
730
731
731
# Delete test files
732
732
set (names "legacy" "signed" "signed_crldp" "nested" "revoked" "removed" "added" )
You can’t perform that action at this time.
0 commit comments