]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: fix to use variable for the curl namespace
authorViktor Szakats <commit@vsz.me>
Tue, 8 Aug 2023 13:03:58 +0000 (13:03 +0000)
committerViktor Szakats <commit@vsz.me>
Wed, 9 Aug 2023 12:01:46 +0000 (12:01 +0000)
Replace (wrong) literal with a variable to specify the curl
namespace.

Follow-up to 1199308dbc902c52be67fc805c72dd2582520d30 #11505

Reported-by: balikalina on Github
Fixes https://github.com/curl/curl/commit/1199308dbc902c52be67fc805c72dd2582520d30#r123923098
Closes #11629

CMake/curl-config.cmake.in

index e76d0d64fc3851142add7a0236b64ca3f30d1019..056907c4f91d0456bd9b3b467261328a1ae6e4fa 100644 (file)
@@ -35,4 +35,4 @@ include("${CMAKE_CURRENT_LIST_DIR}/@TARGETS_EXPORT_NAME@.cmake")
 check_required_components("@PROJECT_NAME@")
 
 # Alias for either shared or static library
-add_library(curl::libcurl ALIAS curl::@LIB_SELECTED@)
+add_library(@PROJECT_NAME@::libcurl ALIAS @PROJECT_NAME@::@LIB_SELECTED@)