From 95cd2f12ce1772e7c3d7bef1f3f2cce330010388 Mon Sep 17 00:00:00 2001 From: aba Date: Fri, 12 Sep 2014 15:53:13 +0400 Subject: [PATCH] Corrected VTK optionality --- src/WOKTclLib/osutils.tcl | 4 ++++ src/WOKTclLib/templates/template.ac | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/WOKTclLib/osutils.tcl b/src/WOKTclLib/osutils.tcl index cf19966..778656f 100755 --- a/src/WOKTclLib/osutils.tcl +++ b/src/WOKTclLib/osutils.tcl @@ -2232,6 +2232,10 @@ proc osutils:cmktk { theOutDir theToolKit {theIsExec false} theModule} { lappend aFileBuff " if(USE_OPENCL)" lappend aFileBuff " list( APPEND ${theToolKit}_USED_LIBS ${anUsedUnixLib} )" lappend aFileBuff " endif()" + } elseif { $anUsedUnixLib == "VTK" } { + lappend aFileBuff " if(USE_VTK)" + lappend aFileBuff " list( APPEND ${theToolKit}_USED_LIBS ${anUsedUnixLib} )" + lappend aFileBuff " endif()" } elseif { $anUsedUnixLib != "" } { lappend aFileBuff " list( APPEND ${theToolKit}_USED_LIBS ${anUsedUnixLib} )" } diff --git a/src/WOKTclLib/templates/template.ac b/src/WOKTclLib/templates/template.ac index 9ac77a9..ed67b6e 100644 --- a/src/WOKTclLib/templates/template.ac +++ b/src/WOKTclLib/templates/template.ac @@ -787,8 +787,8 @@ else AC_LANG([C++]) HAVE_VTK_INC=yes if test ! -d $vtk_inc; then - DISABLE_VTK_REASON_INC="($vtk_inc directory is not exists)" - AC_MSG_ERROR([$vtk_inc directory is not exists]) + DISABLE_VTK_REASON_INC="($vtk_inc directory does not exists)" + AC_MSG_ERROR([$vtk_inc directory does not exists]) elif test "x$vtk_inc" != "x"; then CPPFLAGS="-I$vtk_inc $CPPFLAGS"; else @@ -1061,7 +1061,7 @@ else fi fi -CSF_VTK="$CSF_VTK_LIB" +#CSF_VTK="$CSF_VTK_LIB" AM_CONDITIONAL( HAVE_VTK, [test "xyes" = "x$HAVE_VTK"] ) #---------------------------------------------------------------------- -- 2.39.5