]> OCCT Git - occt-wok.git/commitdiff
23481: WOK cannot be launched if the variable "LIB" or "INCLUDE" is not set
authorjgv <jgv@opencascade.com>
Fri, 26 Oct 2012 09:57:59 +0000 (13:57 +0400)
committeribs <ibs@opencascade.com>
Tue, 20 Nov 2012 07:12:38 +0000 (11:12 +0400)
WOK launches if the variable "LIB" or "INCLUDE" is set possibility has been added

src/WOKsite/wok_tclshrc.tcl

index b16fc031ad3c01e322d47d1826368a082f393772..a90e51ee7987d85682c95df54f51ca2c3d7a6f9e 100644 (file)
@@ -210,11 +210,20 @@ if { "$::ARCH" == "32"} {
 } else {
   set aCLibPaths [join $::CSF_OPT_LIB64 $::SYS_PATH_SPLITTER]
 }
-set env($aEnvVarCLib) "${aCLibPaths}${::SYS_PATH_SPLITTER}$env($aEnvVarCLib)"
+
+if { [array names env $aEnvVarCLib] == "" } {
+  set env($aEnvVarCLib) "${aCLibPaths}${::SYS_PATH_SPLITTER}"
+} else {
+  set env($aEnvVarCLib) "${aCLibPaths}${::SYS_PATH_SPLITTER}$env($aEnvVarCLib)"
+}
 
 # Compiler search path to the headers
 set aCIncPaths [join $::CSF_OPT_INC $::SYS_PATH_SPLITTER]
-set env($aEnvVarCInc) "${aCIncPaths}${::SYS_PATH_SPLITTER}$env($aEnvVarCInc)"
+if { [array names env $aEnvVarCInc] == "" } {
+  set env($aEnvVarCInc) "${aCIncPaths}${::SYS_PATH_SPLITTER}"
+} else {
+  set env($aEnvVarCInc) "${aCIncPaths}${::SYS_PATH_SPLITTER}$env($aEnvVarCInc)"
+}
 
 # Search path to the libraries
 if { "$::tcl_platform(platform)" != "windows" } {