]> OCCT Git - occt.git/commitdiff
0032304: Configuration - genproj should not override env.bat in OCC Products
authorkgv <kgv@opencascade.com>
Thu, 15 Apr 2021 13:05:01 +0000 (16:05 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 15 Apr 2021 16:14:25 +0000 (19:14 +0300)
adm/genproj.tcl

index 68032c10db54abee189ee2417f0a1095c79e1fbe..f12905ff327d37543435799d024928404ef36af5 100644 (file)
@@ -383,7 +383,7 @@ proc genprojbat {theFormat thePlatform theSolution} {
     set aTargetEol crlf
   }
 
-  if {"$theFormat" != "cmake"} {
+  if { [file exists "$::path/src/OS/FoundationClasses.tcl"] || ![file exists "$::path/env.${aTargetPlatformExt}"] } {
     # generate env.bat/sh
     set anEnvTmplFilePath "$::THE_CASROOT/adm/templates/env.${aTargetPlatformExt}"
     set anEnvTmplFile [open "$anEnvTmplFilePath" "r"]