Skip to content

Commit 82b4c24

Browse files
apnbugmaster
authored andcommitted
Update of template for compilation in debug mode
1 parent 32d5cd7 commit 82b4c24

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

adm/templates/vtk.cmake

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff 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()
6469
endif()
@@ -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()
112121
endif()
113122

0 commit comments

Comments
 (0)