diff --git a/CMake/Macros.cmake b/CMake/Macros.cmake index ad0df18af8..8653f36b0a 100644 --- a/CMake/Macros.cmake +++ b/CMake/Macros.cmake @@ -34,11 +34,14 @@ macro(check_include_file_concat_curl _file _variable) endif() endmacro() +set(CURL_TEST_DEFINES "") # Initialize global variable + # For other curl specific tests, use this macro. # Return result in variable: CURL_TEST_OUTPUT macro(curl_internal_test _curl_test) if(NOT DEFINED "${_curl_test}") string(REPLACE ";" " " _cmake_required_definitions "${CMAKE_REQUIRED_DEFINITIONS}") + set(_curl_test_add_libraries "") if(CMAKE_REQUIRED_LIBRARIES) set(_curl_test_add_libraries "-DLINK_LIBRARIES:STRING=${CMAKE_REQUIRED_LIBRARIES}") diff --git a/CMakeLists.txt b/CMakeLists.txt index 1e09bf0c7d..ce1318c6dd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2469,6 +2469,7 @@ if(NOT CURL_DISABLE_INSTALL) endif() # Save build info for test runner to pick up and log +set(_cmake_sysroot "") if(CMAKE_OSX_SYSROOT) set(_cmake_sysroot ${CMAKE_OSX_SYSROOT}) elseif(CMAKE_SYSROOT) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index c1863b0de3..168fa20cf3 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -65,6 +65,13 @@ endif() ## Library definition +if(NOT DEFINED IMPORT_LIB_SUFFIX) + set(IMPORT_LIB_SUFFIX "") +endif() +if(NOT DEFINED STATIC_LIB_SUFFIX) + set(STATIC_LIB_SUFFIX "") +endif() + # Add "_imp" as a suffix before the extension to avoid conflicting with # the statically linked "libcurl.lib" (typically with MSVC) if(WIN32 AND