File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,8 +57,13 @@ if (3RDPARTY_VTK_DIR AND EXISTS "${3RDPARTY_VTK_DIR}")
5757 if (NOT 3RDPARTY_VTK_LIBRARY_DIR OR NOT EXISTS "${3RDPARTY_VTK_LIBRARY_DIR} " )
5858 if (EXISTS "${3RDPARTY_VTK_DIR} /lib${BUILD_POSTFIX} " )
5959 set (3RDPARTY_VTK_LIBRARY_DIR "${3RDPARTY_VTK_DIR} /lib${BUILD_POSTFIX} " CACHE FILEPATH "The directory containing libs of VTK" FORCE )
60- endif ()
61- else ()
60+ else ()
61+ if (NOT "${BUILD_POSTFIX} " STREQUAL "" AND EXISTS "${3RDPARTY_VTK_DIR} /lib" )
62+ set (3RDPARTY_VTK_LIBRARY_DIR "${3RDPARTY_VTK_DIR} /lib" CACHE FILEPATH "The directory containing libs of VTK" FORCE )
63+ endif ()
64+ endif ()
65+ endif ()
66+ if (3RDPARTY_VTK_LIBRARY_DIR)
6267 list (APPEND 3RDPARTY_LIBRARY_DIRS "${3RDPARTY_VTK_LIBRARY_DIR} " )
6368 endif ()
6469endif ()
@@ -107,7 +112,11 @@ if (WIN32)
107112 if (NOT 3RDPARTY_VTK_DLL_DIR OR NOT EXISTS "${3RDPARTY_VTK_DLL_DIR} " )
108113 if (EXISTS "${3RDPARTY_VTK_DIR} /bin${BUILD_POSTFIX} " )
109114 set (3RDPARTY_VTK_DLL_DIR "${3RDPARTY_VTK_DIR} /bin${BUILD_POSTFIX} " CACHE FILEPATH "The directory containing dll of VTK" FORCE )
110- endif ()
115+ else ()
116+ if (NOT "${BUILD_POSTFIX} " STREQUAL "" AND EXISTS "${3RDPARTY_VTK_DIR} /bin" )
117+ set (3RDPARTY_VTK_DLL_DIR "${3RDPARTY_VTK_DIR} /bin" CACHE FILEPATH "The directory containing dll of VTK" FORCE )
118+ endif ()
119+ endif ()
111120 endif ()
112121endif ()
113122
You can’t perform that action at this time.
0 commit comments