cmake: fix `LOCATION` property access condition (debug)
No binary (build failed)
—
(log yok)
| @@ -60,8 +60,8 @@ function(curl_dumptargetprops _target) | |
| list(REMOVE_DUPLICATES _cmake_property_list) | |
| list(REMOVE_ITEM _cmake_property_list "") | |
| list(APPEND _cmake_property_list "INTERFACE_LIBCURL_PC_MODULES") | |
| - | get_target_property(_target_type ${_target} TYPE) |
| - | if(NOT _target_type MATCHES "(INTERFACE_LIBRARY|UNKNOWN_LIBRARY)") |
| + | get_target_property(_target_imported ${_target} IMPORTED) |
| + | if(NOT _target_imported) |
| list(REMOVE_ITEM _cmake_property_list "LOCATION" "LOCATION_<CONFIG>" "MACOSX_PACKAGE_LOCATION" "VS_DEPLOYMENT_LOCATION") | |
| endif() | |
| foreach(_prop IN LISTS _cmake_property_list) | |