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

Fix WOK extraction when environment variable HAVE_VTK is not defined

This commit is contained in:
abv 2014-09-12 20:08:45 +04:00
parent 7cf07fa506
commit 53c888d174
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@
proc Draw:toolkits { } {
set aResult [list TKDraw TKTopTest TKViewerTest TKXSDRAW TKDCAF TKXDEDRAW TKTObjDRAW TKQADraw]
if { $::env(HAVE_VTK) == "true" } {
if { [info exists ::env(HAVE_VTK)] && $::env(HAVE_VTK) == "true" } {
lappend aResult "TKIVtkDraw"
}

View File

@ -22,7 +22,7 @@ proc Visualization:toolkits { } {
TKNIS \
TKVoxel]
if { "$::env(HAVE_VTK)" == "true" } {
if { [info exists ::env(HAVE_VTK)] && "$::env(HAVE_VTK)" == "true" } {
lappend aResult "TKIVtk"
}
@ -53,7 +53,7 @@ proc Visualization:depends { } {
proc Visualization:acdepends { } {
set aList [list X11 GL FREETYPE]
if { "$::env(HAVE_VTK)" == "true" } {
if { [info exists ::env(HAVE_VTK)] && "$::env(HAVE_VTK)" == "true" } {
lappend aList "VTK"
}