]> SALOME platform Git repositories - tools/configuration.git/commitdiff
Salome HOME
Remove workaround with freetype.
authorrnv <rnv@opencascade.com>
Tue, 30 Jan 2018 14:22:57 +0000 (17:22 +0300)
committerrnv <rnv@opencascade.com>
Tue, 30 Jan 2018 14:26:11 +0000 (17:26 +0300)
cmake/FindSalomeOpenCASCADE.cmake

index 63f01896433b390697cdf17d4cef0bf44150c301..6b0b67910e7cef27179d49151e53e87b13939742 100644 (file)
@@ -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()