5
5
6
6
include (CMakeParseArguments) # cmake_parse_arguments
7
7
8
+ include (hunter_assert_not_empty_string)
8
9
include (hunter_create_args_file)
9
10
include (hunter_download_server_url)
10
11
include (hunter_find_licenses)
11
12
include (hunter_find_stamps)
12
13
include (hunter_get_cacheable)
14
+ include (hunter_get_configuration_types)
13
15
include (hunter_internal_error)
14
16
include (hunter_jobs_number)
15
17
include (hunter_load_from_cache)
@@ -19,7 +21,6 @@ include(hunter_register_dependency)
19
21
include (hunter_save_to_cache)
20
22
include (hunter_status_debug)
21
23
include (hunter_status_print)
22
- include (hunter_assert_not_empty_string)
23
24
include (hunter_upload_cache)
24
25
include (hunter_user_error)
25
26
@@ -90,14 +91,11 @@ function(hunter_download)
90
91
URL "${HUNTER_${h_name} _URL}"
91
92
OUTPUT HUNTER_PACKAGE_URL
92
93
)
93
- set (
94
- HUNTER_PACKAGE_CONFIGURATION_TYPES
95
- "${HUNTER_${h_name} _CONFIGURATION_TYPES}"
94
+
95
+ hunter_get_configuration_types(
96
+ PACKAGE "${h_name} "
97
+ OUT HUNTER_PACKAGE_CONFIGURATION_TYPES
96
98
)
97
- string (COMPARE EQUAL "${HUNTER_PACKAGE_CONFIGURATION_TYPES} " "" no_types)
98
- if (no_types)
99
- set (HUNTER_PACKAGE_CONFIGURATION_TYPES ${HUNTER_CACHED_CONFIGURATION_TYPES} )
100
- endif ()
101
99
102
100
hunter_get_cacheable(
103
101
PACKAGE "${h_name} "
@@ -107,8 +105,6 @@ function(hunter_download)
107
105
108
106
set (HUNTER_PACKAGE_PROTECTED_SOURCES "${HUNTER_${h_name} _PROTECTED_SOURCES}" )
109
107
110
- hunter_assert_not_empty_string("${HUNTER_PACKAGE_CONFIGURATION_TYPES} " )
111
-
112
108
string (COMPARE EQUAL "${HUNTER_PACKAGE_URL} " "" hunter_no_url)
113
109
114
110
hunter_assert_not_empty_string("${HUNTER_PACKAGE_URL} " )
@@ -509,11 +505,6 @@ function(hunter_download)
509
505
hunter_status_debug("Download scheme: ${HUNTER_DOWNLOAD_SCHEME} " )
510
506
hunter_status_debug("Url: ${HUNTER_PACKAGE_URL} " )
511
507
hunter_status_debug("SHA1: ${HUNTER_PACKAGE_SHA1} " )
512
- if (HUNTER_PACKAGE_SCHEME_INSTALL)
513
- hunter_status_debug(
514
- "Configuration types: ${HUNTER_PACKAGE_CONFIGURATION_TYPES} "
515
- )
516
- endif ()
517
508
hunter_status_debug("HUNTER_TLS_VERIFY: ${HUNTER_TLS_VERIFY} " )
518
509
519
510
if (has_internal_deps_id)
0 commit comments