mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 04:07:54 +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>
37 lines
1.5 KiB
Diff
37 lines
1.5 KiB
Diff
diff --git a/CMake/FindLibHaru.cmake b/CMake/FindLibHaru.cmake
|
|
index 7ef877a49..2a18e0694 100644
|
|
--- a/CMake/FindLibHaru.cmake
|
|
+++ b/CMake/FindLibHaru.cmake
|
|
@@ -43,6 +43,31 @@ if (LibHaru_FOUND)
|
|
set(LibHaru_INCLUDE_DIRS "${LibHaru_INCLUDE_DIR}")
|
|
set(LibHaru_LIBRARIES "${LibHaru_LIBRARY}")
|
|
|
|
+ add_library(LibHaru::LibHaru UNKNOWN IMPORTED)
|
|
+ set_target_properties(LibHaru::LibHaru PROPERTIES
|
|
+ INTERFACE_INCLUDE_DIRECTORIES "${LibHaru_INCLUDE_DIR}")
|
|
+ if(LZMA_LIBRARY_RELEASE)
|
|
+ set_target_properties(LibHaru::LibHaru PROPERTIES
|
|
+ IMPORTED_LOCATION_RELEASE "${LibHaru_LIBRARY_RELEASE}"
|
|
+ IMPORTED_IMPLIB_RELEASE "${LibHaru_LIBRARY_RELEASE}")
|
|
+ endif()
|
|
+ if(LZMA_LIBRARY_DEBUG)
|
|
+ set_target_properties(LibHaru::LibHaru PROPERTIES
|
|
+ IMPORTED_LOCATION_DEBUG "${LibHaru_LIBRARY_DEBUG}"
|
|
+ IMPORTED_IMPLIB_DEBUG "${LibHaru_LIBRARY_DEBUG}")
|
|
+ endif()
|
|
+
|
|
+ # Guard against possible stupidity of VTK reading only LOCATION without configuration
|
|
+ if(CMAKE_BUILD_TYPE MATCHES "Debug")
|
|
+ set_target_properties(LibHaru::LibHaru PROPERTIES
|
|
+ IMPORTED_LOCATION "${LibHaru_LIBRARY_DEBUG}"
|
|
+ IMPORTED_IMPLIB "${LibHaru_LIBRARY_DEBUG}")
|
|
+ else()
|
|
+ set_target_properties(LibHaru::LibHaru PROPERTIES
|
|
+ IMPORTED_LOCATION "${LibHaru_LIBRARY_RELEASE}"
|
|
+ IMPORTED_IMPLIB "${LibHaru_LIBRARY_RELEASE}")
|
|
+ endif()
|
|
+
|
|
if (NOT TARGET LibHaru::LibHaru)
|
|
include(vtkDetectLibraryType)
|
|
vtk_detect_library_type(libharu_library_type
|
|
|