Working on windows with https

This commit is contained in:
2026-08-30 12:49:32 -06:00
parent 92d11b5fbb
commit 43da2c7ac1
4 changed files with 17 additions and 10 deletions
+3 -7
View File
@@ -20,6 +20,9 @@ target_include_directories(YTMusicDL26 PUBLIC
include(cmake/CPM.cmake)
set(CURL_USE_LIBPSL OFF CACHE BOOL "" FORCE)
set(CURL_USE_SCHANNEL ON)
set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE)
CPMAddPackage("gh:nlohmann/json#v3.12.0")
CPMAddPackage("gh:curl/curl#curl-8_21_0")
@@ -38,13 +41,6 @@ if (WIN32)
-static-libstdc++
-static
)
add_custom_command(TARGET YTMusicDL26 POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
$<TARGET_RUNTIME_DLLS:YTMusicDL26>
$<TARGET_FILE_DIR:YTMusicDL26>
COMMAND_EXPAND_LISTS
)
endif ()