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:
parent
7cf07fa506
commit
53c888d174
@ -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"
|
||||
}
|
||||
|
||||
|
@ -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"
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user