From cc36e8e9f0fbc9e3908e4bd744e4f42c8d31f07c Mon Sep 17 00:00:00 2001 From: rafal1137 Date: Tue, 6 Feb 2024 15:33:23 +0100 Subject: [PATCH] cmake: fix linking with MSVC/VS --- CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ff84201..b9f627bc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -433,9 +433,7 @@ if(BUNDLED_CURL AND (BUILD_CLIENT OR BUILD_SERVER)) if (WIN32) - if(VSTUDIO) - set(CURL_BUNDLED_LIBRARIES optimized "${binary_dir}/lib/Release/libcurl${CMAKE_STATIC_LIBRARY_SUFFIX}" debug "${binary_dir}/lib/Debug/libcurl-d${CMAKE_STATIC_LIBRARY_SUFFIX}") - elseif(MINGW OR VS_BUILD) + if(MINGW OR VS_BUILD OR VSTUDIO) set(CURL_BUNDLED_LIBRARIES optimized "${binary_dir}/lib/libcurl${CMAKE_STATIC_LIBRARY_SUFFIX}" debug "${binary_dir}/lib/libcurl-d${CMAKE_STATIC_LIBRARY_SUFFIX}") else() set(CURL_BUNDLED_LIBRARIES "${binary_dir}/libcurl${CMAKE_STATIC_LIBRARY_SUFFIX}")