We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9413b6d + f093d7e commit d3ff365Copy full SHA for d3ff365
llvm/cmake/modules/Findzstd.cmake
@@ -29,11 +29,11 @@ find_package_handle_standard_args(
29
)
30
31
if(zstd_FOUND)
32
- if(zstd_LIBRARY MATCHES "${zstd_STATIC_LIBRARY_SUFFIX}$")
+ if(zstd_LIBRARY MATCHES "${zstd_STATIC_LIBRARY_SUFFIX}$" AND NOT zstd_LIBRARY MATCHES "\\.dll\\.a$")
33
set(zstd_STATIC_LIBRARY "${zstd_LIBRARY}")
34
elseif (NOT TARGET zstd::libzstd_shared)
35
add_library(zstd::libzstd_shared SHARED IMPORTED)
36
- if(MSVC OR "${CMAKE_CXX_SIMULATE_ID}" STREQUAL "MSVC")
+ if(WIN32 OR CYGWIN)
37
include(GNUInstallDirs) # For CMAKE_INSTALL_LIBDIR and friends.
38
# IMPORTED_LOCATION is the path to the DLL and IMPORTED_IMPLIB is the "library".
39
get_filename_component(zstd_DIRNAME "${zstd_LIBRARY}" DIRECTORY)
0 commit comments