mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-09 18:50:54 +03:00
0032553: Configuration, CMake - unable to building with ActiveTcl
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).
This commit is contained in:
parent
0b1fd5909d
commit
e639e9bcdc
@ -43,18 +43,6 @@
|
|||||||
|
|
||||||
#include <Standard_WarningDisableFunctionCast.hxx>
|
#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;
|
extern Standard_Boolean Draw_ParseFailed;
|
||||||
|
|
||||||
Standard_EXPORT Draw_Viewer dout;
|
Standard_EXPORT Draw_Viewer dout;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user