From: ibs Date: Tue, 26 Mar 2013 08:13:54 +0000 (+0400) Subject: 0023840: CASROOT variable in automake env.sh script is generated incorrectly in produ... X-Git-Tag: V6_7_1~53 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=9cd034497579fbacc832d3e649702b892d1885b0;p=occt-wok.git 0023840: CASROOT variable in automake env.sh script is generated incorrectly in product case 0023848: cmake configuration process doesn't correctly search freetype includes in some cases checking of existence of freetype2 directory added --- diff --git a/src/WOKTclLib/templates/template.cmake b/src/WOKTclLib/templates/template.cmake index 3c74cb4..0593c41 100644 --- a/src/WOKTclLib/templates/template.cmake +++ b/src/WOKTclLib/templates/template.cmake @@ -282,7 +282,7 @@ THIRDPARTY_PRODUCT("FREETYPE" "ft2build.h" "freetype${BUILD_SUFFIX}") IF("${3RDPARTY_FREETYPE_INCLUDE_DIR}" STREQUAL "" OR "${3RDPARTY_FREETYPE_INCLUDE_DIR}" STREQUAL "3RDPARTY_${PRODUCT_NAME}_INCLUDE_DIR-NOTFOUND") -ELSE() +ELSEIF(EXISTS "${3RDPARTY_FREETYPE_INCLUDE_DIR}/freetype2/") SET(3RDPARTY_INCLUDE_DIRS "${3RDPARTY_INCLUDE_DIRS};${3RDPARTY_FREETYPE_INCLUDE_DIR}/freetype2") ENDIF() diff --git a/src/WOKsite/wok_tclshrc.tcl b/src/WOKsite/wok_tclshrc.tcl index a959153..13536b9 100644 --- a/src/WOKsite/wok_tclshrc.tcl +++ b/src/WOKsite/wok_tclshrc.tcl @@ -279,7 +279,7 @@ proc wgenprojbat {thePath theIDE} { set anOsIncPath [relativePath "$aBox" "$anOsRootPath"] if { "$theIDE" == "amk" } { - regsub -all -- {__CASROOT__} $anEnvTmpl "\$PWD" anEnvTmpl + regsub -all -- {__CASROOT__} $anEnvTmpl "$aCasRoot" anEnvTmpl regsub -all -- {__CASBIN__} $anEnvTmpl "" anEnvTmpl regsub -all -- {__BIN_PATH__} $anEnvTmpl "BIN_PATH=\${CASBIN}bin\${CASDEB}" anEnvTmpl regsub -all -- {__LIBS_PATH__} $anEnvTmpl "LIBS_PATH=\${CASBIN}lib\${CASDEB}" anEnvTmpl