mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 21:48:23 +08:00
3e2409f47d
* [vtk-m] new port vtk-m * [VTK] Update to 9.0 * include local buildtree changes * [pcl] disable VTK due to API changes in VTK 9.0 * [vtk-m] add supports field to be only x64 * [vtk-dicom] add python executable. * fix vtkm dependency * [vtk-dicom] fix missing std:: namespace * [vtk-m] add uwp to unsupported triplets * [vtk] add pegtl include patch, reenable IOMotionFX * remove hdf5 changes for testing * use different pgetl patch which redirects to the installed config of pegtl * [pegtl-2] version file needs renaming too * [vtk] change dependency to pgetl-2 and fix the patch * [vtk] put in hdf5 fix again and correct manually installed include files * remove deprecated function to retrigger CI * [lz4] correctly lowercase the lz4 config * [vtk] remove unnecessary code * [pegtl-2] add homepage * [pegtl] modernize portfiles * [vtk-dicom] add homepage * [vtk-dicom] modernize portfile * [vtk-m] remove empty build depends * [vtk] try fixing the permission issue * bump control * Update FindHDF5.cmake * Update pegtl.patch * Update ports/vtk/pegtl.patch Co-authored-by: nicole mazzuca <mazzucan@outlook.com> * [vtk] refactor portfile, added a few deps on [core] and added feature cuda * [vtk] pegtl.patch: Add additional found message * [vtk-m] add more documentation comments * [vtk] fix string replacement Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
48 lines
1.7 KiB
Diff
48 lines
1.7 KiB
Diff
diff --git a/CMake/FindLZ4.cmake b/CMake/FindLZ4.cmake
|
|
index 8c94e3bcd..ade3f9451 100644
|
|
--- a/CMake/FindLZ4.cmake
|
|
+++ b/CMake/FindLZ4.cmake
|
|
@@ -1,38 +1,3 @@
|
|
-find_path(LZ4_INCLUDE_DIR
|
|
- NAMES lz4.h
|
|
- DOC "lz4 include directory")
|
|
-mark_as_advanced(LZ4_INCLUDE_DIR)
|
|
-find_library(LZ4_LIBRARY
|
|
- NAMES lz4 liblz4
|
|
- DOC "lz4 library")
|
|
-mark_as_advanced(LZ4_LIBRARY)
|
|
-
|
|
-if (LZ4_INCLUDE_DIR)
|
|
- file(STRINGS "${LZ4_INCLUDE_DIR}/lz4.h" _lz4_version_lines
|
|
- REGEX "#define[ \t]+LZ4_VERSION_(MAJOR|MINOR|RELEASE)")
|
|
- string(REGEX REPLACE ".*LZ4_VERSION_MAJOR *\([0-9]*\).*" "\\1" _lz4_version_major "${_lz4_version_lines}")
|
|
- string(REGEX REPLACE ".*LZ4_VERSION_MINOR *\([0-9]*\).*" "\\1" _lz4_version_minor "${_lz4_version_lines}")
|
|
- string(REGEX REPLACE ".*LZ4_VERSION_RELEASE *\([0-9]*\).*" "\\1" _lz4_version_release "${_lz4_version_lines}")
|
|
- set(LZ4_VERSION "${_lz4_version_major}.${_lz4_version_minor}.${_lz4_version_release}")
|
|
- unset(_lz4_version_major)
|
|
- unset(_lz4_version_minor)
|
|
- unset(_lz4_version_release)
|
|
- unset(_lz4_version_lines)
|
|
-endif ()
|
|
-
|
|
-include(FindPackageHandleStandardArgs)
|
|
-find_package_handle_standard_args(LZ4
|
|
- REQUIRED_VARS LZ4_LIBRARY LZ4_INCLUDE_DIR
|
|
- VERSION_VAR LZ4_VERSION)
|
|
-
|
|
-if (LZ4_FOUND)
|
|
- set(LZ4_INCLUDE_DIRS "${LZ4_INCLUDE_DIR}")
|
|
- set(LZ4_LIBRARIES "${LZ4_LIBRARY}")
|
|
-
|
|
- if (NOT TARGET LZ4::LZ4)
|
|
- add_library(LZ4::LZ4 UNKNOWN IMPORTED)
|
|
- set_target_properties(LZ4::LZ4 PROPERTIES
|
|
- IMPORTED_LOCATION "${LZ4_LIBRARY}"
|
|
- INTERFACE_INCLUDE_DIRECTORIES "${LZ4_INCLUDE_DIR}")
|
|
- endif ()
|
|
-endif ()
|
|
+find_package(LZ4 CONFIG REQUIRED)
|
|
+set_target_properties(lz4::lz4 PROPERTIES IMPORTED_GLOBAL TRUE)
|
|
+add_library(LZ4::LZ4 ALIAS lz4::lz4)
|
|
\ No newline at end of file
|