]> OCCT Git - occt.git/commitdiff
0030976: Configuration, CMake - Build failure with static FreeType dependency
authorkgv <kgv@opencascade.com>
Fri, 3 Sep 2021 12:22:22 +0000 (15:22 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 3 Sep 2021 17:19:53 +0000 (20:19 +0300)
Removed linkage with "freetype.lib" with help of pragma lib specific to msvc.
FreeType library should be configured as a normal external dependency via CSF_FreeType
by CMake and genproj, which is already done (information was duplicated).

src/Font/Font_FontMgr.cxx

index b9b2d47e8f2e89f8c337996b7ad10a728f7f3240..3e31c207ebc472a35f5bdf9e370be0c75d940773 100644 (file)
@@ -41,10 +41,6 @@ IMPLEMENT_STANDARD_RTTIEXT(Font_FontMgr,Standard_Transient)
   #include <windows.h>
   #include <stdlib.h>
 
-  #if defined(_MSC_VER) && defined(HAVE_FREETYPE)
-    #pragma comment (lib, "freetype.lib")
-  #endif
-
   namespace
   {
     // list of supported extensions