From: kgv Date: Thu, 15 Apr 2021 13:05:01 +0000 (+0300) Subject: 0032304: Configuration - genproj should not override env.bat in OCC Products X-Git-Tag: V7_6_0_beta~178 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=b907cca37e53b90d0ee0ac7293eb2ed0f8b20fe0;p=occt.git 0032304: Configuration - genproj should not override env.bat in OCC Products --- diff --git a/adm/genproj.tcl b/adm/genproj.tcl index 68032c10db..f12905ff32 100644 --- a/adm/genproj.tcl +++ b/adm/genproj.tcl @@ -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"]