1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00

0027025: Configuration, CMake - do not get properties from non-VTK targets

This commit is contained in:
ibs 2015-12-21 18:18:41 +03:00 committed by bugmaster
parent 109aa56ebe
commit 8f1f5a45cb

View File

@ -74,6 +74,8 @@ if (VTK_FOUND)
set (3RDPARTY_VTK_DLL_DIRS)
foreach (VTK_LIBRARY ${VTK_LIBRARIES})
string (REGEX MATCH "^vtk" IS_VTK_LIBRARY ${VTK_LIBRARY})
if (IS_VTK_LIBRARY)
# get paths from corresponding variables
if (${VTK_LIBRARY}_INCLUDE_DIRS AND EXISTS "${${VTK_LIBRARY}_INCLUDE_DIRS}")
list (APPEND 3RDPARTY_VTK_INCLUDE_DIRS "${${VTK_LIBRARY}_INCLUDE_DIRS}")
@ -119,6 +121,7 @@ if (VTK_FOUND)
endif()
endif()
endif()
endif()
endforeach()
endif()