]> OCCT Git - occt.git/commitdiff
0032553: Configuration, CMake - unable to building with ActiveTcl
authorkgv <kgv@opencascade.com>
Thu, 2 Sep 2021 06:03:55 +0000 (09:03 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 3 Sep 2021 17:19:53 +0000 (20:19 +0300)
Removed linkage with "tcl8.6.lib" with help of pragma lib specific to msvc.
Tcl libraries should be configured as normal external dependencies via CSF_TclLibs
by CMake and genproj, which is already done (information was duplicated).

src/Draw/Draw.cxx

index 957aec927a9b58fa7b9d557b562d861e3c024594..cb43f83d8e61c7ab000e03a5751adfb20e17b263 100644 (file)
 
 #include <Standard_WarningDisableFunctionCast.hxx>
 
-// on MSVC, use #pragma to define name of the Tcl library to link with,
-// depending on Tcl version number
-#ifdef _MSC_VER
-// two helper macros are needed to convert version number macro to string literal
-#define STRINGIZE1(a) #a
-#define STRINGIZE2(a) STRINGIZE1(a)
-#pragma comment (lib, "tcl" STRINGIZE2(TCL_MAJOR_VERSION) STRINGIZE2(TCL_MINOR_VERSION) ".lib")
-#pragma comment (lib, "tk"  STRINGIZE2(TCL_MAJOR_VERSION) STRINGIZE2(TCL_MINOR_VERSION) ".lib")
-#undef STRINGIZE2
-#undef STRINGIZE1
-#endif
-
 extern Standard_Boolean Draw_ParseFailed;
 
 Standard_EXPORT Draw_Viewer dout;