From 7631d0e0e289faa77927b2c2173d7ab6b4e4a328 Mon Sep 17 00:00:00 2001 From: rnv Date: Tue, 30 Jan 2018 17:22:57 +0300 Subject: [PATCH] Remove workaround with freetype. --- cmake/FindSalomeOpenCASCADE.cmake | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/cmake/FindSalomeOpenCASCADE.cmake b/cmake/FindSalomeOpenCASCADE.cmake index 63f0189..6b0b679 100644 --- a/cmake/FindSalomeOpenCASCADE.cmake +++ b/cmake/FindSalomeOpenCASCADE.cmake @@ -37,34 +37,10 @@ IF(OpenCASCADE_FOUND) SET(OpenCascade_DEFINITIONS ${OpenCASCADE_C_FLAGS} ${OpenCASCADE_CXX_FLAGS}) SET(OpenCascade_LDFLAGS ${OpenCASCADE_LINKER_FLAGS}) - # Workaround: detect and add freetype to CAS_INCLUDE_DIRS - # It will be suppressed after the correction of the several bugs in - # the OCCT CMake configuration. - IF(OpenCASCADE_VERSION VERSION_LESS "7.1.1") - SET(Freetype_DIR $ENV{FREETYPE_ROOT_DIR}) - FIND_PACKAGE(Freetype) - - # Standard CMake Findfreetype.cmake doesn't find ft2build.h, do it manually: - # 1. Find custom freetype - FIND_PATH( FREETYPE_INCLUDE_DIR_ft2build ft2build.h - PATHS $ENV{FREETYPE_ROOT_DIR} - PATH_SUFFIXES include/freetype2 include freetype2 - NO_DEFAULT_PATH ) - - # 2. Find native freetype, if custom doesn't found: - IF(NOT FREETYPE_INCLUDE_DIR_ft2build) - FIND_PATH( FREETYPE_INCLUDE_DIR_ft2build ft2build.h - PATH_SUFFIXES include/freetype2 include freetype2 ) - ENDIF() - SET(OpenCASCADE_INCLUDE_DIR ${OpenCASCADE_INCLUDE_DIR} ${FREETYPE_INCLUDE_DIR_freetype2} ${FREETYPE_INCLUDE_DIR_ft2build}) - ENDIF() - # End of workaround - SALOME_ACCUMULATE_HEADERS(OpenCASCADE_INCLUDE_DIR) SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH ${OpenCASCADE_LIBRARY_DIR}) ELSE() - # TODO: Detect OpenCASCADE if it is distributed without CMake configuration. IF(NOT CAS_FIND_QUIETLY) MESSAGE(STATUS "Could not find OpenCASCADE ...") ENDIF() -- 2.39.2