ソースを参照

Remove superfluous test on fontconfig

The test is run but only used to see if vtkRenderingFreeTypeFontConfig is
to be linked, but it is already tested whether the vtk target
vtkRenderingFreeTypeFontConfig actually exists.

In addition on Debian the FontConficConfig.cmake file doesn't extist, so the
test fails and linking as well, because the needed
vtkRenderingFreeTypeFontConfig is not added to the linker line.
Gert Wollny 9 年 前
コミット
f155493efb
共有1 個のファイルを変更した0 個の追加3 個の削除を含む
  1. 0 3
      Libs/Visualization/VTK/Core/CMakeLists.txt

+ 0 - 3
Libs/Visualization/VTK/Core/CMakeLists.txt

@@ -90,12 +90,9 @@ if(${VTK_VERSION_MAJOR} GREATER 5)
     list(APPEND VTK_LIBRARIES vtkRenderingFreeTypeOpenGL)
   endif()
   if (TARGET vtkRenderingFreeTypeFontConfig AND UNIX AND NOT APPLE)
-    find_package(FontConfig QUIET)
-    if (FONTCONFIG_FOUND)
       list(APPEND VTK_LIBRARIES
         vtkRenderingFreeTypeFontConfig
         )
-    endif()
   endif()
 else()
   set(VTK_LIBRARIES