vcpkg/ports/pdal/fix-find-library-suffix.patch

17 lines
528 B
Diff
Raw Normal View History

diff --git a/cmake/libraries.cmake b/cmake/libraries.cmake
index dae98ea..edab055 100644
--- a/cmake/libraries.cmake
+++ b/cmake/libraries.cmake
@@ -3,11 +3,7 @@
option(PDAL_BUILD_STATIC "Build PDAL as a static library" OFF)
if (PDAL_BUILD_STATIC)
set(PDAL_LIB_TYPE "STATIC")
- set(CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_STATIC_LIBRARY_SUFFIX})
else ()
set(PDAL_LIB_TYPE "SHARED")
- if (WIN32)
- set(CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_IMPORT_LIBRARY_SUFFIX})
- endif()
endif()
mark_as_advanced(PDAL_BUILD_STATIC)