Skip to content

Can't build with USE_TCL off. #757

@Ted-Jin-Lab

Description

@Ted-Jin-Lab

Description

I always get the following message when I run cmake, even if I set -DUSE_TCL=OFF

-- Info: TCL is used by OCCT

Expected Behavior

No message like this in command

-- Info: TCL is used by OCCT

Actual Behavior

It built with TCL.

Sample Code or DRAW Tcl Script

cmake -S XXXXX -B XXXXX -G "Visual Studio 17 2022" -A x64 -DCMAKE_TOOLCHAIN_FILE=XXXXX -DUSE_TCL=OFF

Operating System

Windows

Compiler

MSVC

Bitness

64-bit

OCCT Version

latest

Additional Files

What I Found in Code

OCCT_IS_PRODUCT_REQUIRED (CSF_TclLibs USE_TCL)

I found that USE_TCL was the only variable that didn't start with CAN.

OCCT/CMakeLists.txt

Lines 534 to 542 in 1c0bb24

OCCT_IS_PRODUCT_REQUIRED (CSF_FreeImagePlus CAN_USE_FREEIMAGE)
OCCT_IS_PRODUCT_REQUIRED (CSF_TclLibs USE_TCL)
OCCT_IS_PRODUCT_REQUIRED (CSF_TclTkLibs CAN_USE_TK)
OCCT_IS_PRODUCT_REQUIRED (CSF_XwLibs CAN_USE_XLIB)
OCCT_IS_PRODUCT_REQUIRED (CSF_FREETYPE CAN_USE_FREETYPE)
OCCT_IS_PRODUCT_REQUIRED (CSF_OpenGlLibs CAN_USE_OPENGL)
OCCT_IS_PRODUCT_REQUIRED (CSF_OpenGlesLibs CAN_USE_GLES2)
OCCT_IS_PRODUCT_REQUIRED (CSF_TBB CAN_USE_TBB)
OCCT_IS_PRODUCT_REQUIRED (CSF_EIGEN CAN_USE_EIGEN)

Maybe, it should be CAN_USE_TCL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. NewThe issue was created, but not updated by maintainer. Waiting for updates labels and categories2. BugSomething isn't working

    Type

    No type

    Projects

    Status

    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions