Build OCCT without Tcl/Tk third-party dependency?


Is there a way of building OCCT without the Tcl/Tk dependency? My understanding is that the dependency is only required for Draw. I've tried (using CMake) to run a build with -DBUILD_SHARED_LIBS=NO (isn't that supposed to disable it?) but I get:

CMake Error at CMakeLists.txt:708 (message):
  Could not find headers of used third-party products:

I'd like to know if that's supported before digging into OCCT's CMake scripts.

Thanks a lot!


Kirill Gavrilov's picture

Have you tried disabling BUILD_MODULE_Draw?

Martin Blanchard's picture

Yep, I found that one right after posting here: -DBUILD_MODULE_Draw:BOOL=FALSE seems to be working, Thanks !