mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 13:39:08 +08:00
3efae11c36
closes #36801 closes #36253 closes #36044 ~~includes #24327 to fix dlib linkage in the osx pipelines.~~ Need to look at ~~#36044~~ ~~#36345~~ merge after - [x] #37561 --------- Co-authored-by: Alexander Neumann <you@example.com> Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
34 lines
842 B
Diff
34 lines
842 B
Diff
diff --git a/Filters/OpenTURNS/CMakeLists.txt b/Filters/OpenTURNS/CMakeLists.txt
|
|
index 8bbc0cd..729e323 100644
|
|
--- a/Filters/OpenTURNS/CMakeLists.txt
|
|
+++ b/Filters/OpenTURNS/CMakeLists.txt
|
|
@@ -1,9 +1,11 @@
|
|
-find_package(OpenTURNS 1.8 REQUIRED)
|
|
+vtk_module_find_package( PRIVATE_IF_SHARED
|
|
+ PACKAGE OpenTURNS
|
|
+ VERSION 1.12
|
|
+)
|
|
|
|
-if (EXISTS "${OPENTURNS_USE_FILE}")
|
|
- # removed in 1.21
|
|
- include (${OPENTURNS_USE_FILE})
|
|
-endif ()
|
|
+if(NOT TARGET OT)
|
|
+ message(FATAL_ERROR "OpenTURNS OT target not available")
|
|
+endif()
|
|
|
|
set(classes
|
|
vtkOTDensityMap
|
|
@@ -28,8 +30,7 @@ vtk_module_add_module(VTK::FiltersOpenTURNS
|
|
|
|
vtk_module_link(VTK::FiltersOpenTURNS
|
|
PRIVATE
|
|
- ${OPENTURNS_LIBRARIES})
|
|
-vtk_module_include(VTK::FiltersOpenTURNS
|
|
- PRIVATE
|
|
- ${OPENTURNS_INCLUDE_DIRS})
|
|
+ OT
|
|
+)
|
|
+
|
|
vtk_add_test_mangling(VTK::FiltersOpenTURNS)
|