Working on windows with https
This commit is contained in:
+3
-7
@@ -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 ()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user