DiscussionsIssue archiveOCCT:Configuration

Archived issue #0027121

Configuration, CMake - build process does not use patched header files

Open CASCADEOCCT:Configurationclosed7 public notes

Search issues

Description

It is possible to introduce patches to Open CASCADE Technology not affecting the original source distribution.
CMake variable BUILD_PATCH is used for that.
It points to the directory recognized as a "patch" for OCCT.
If specified, the files from this directory take precedence over the corresponding native OCCT sources.

At the moment building process does not use patched header files.

For example we have patch of file Aspect_AspectLine.hxx in directory D:/patch/src/Aspect.
CMake configuration process creates linked header file ${CMAKE_BINARY_DIR}/inc/Aspect_AspectLine.hxx which contains next line:

#include "D:/occt/src/Aspect/Aspect_AspectLine.hxx"

but it should contains: #include "D:/patch/src/Aspect/Aspect_AspectLine.hxx"

Steps to reproduce

1) Create patch for any header file of occt
2) Configure and generate solution with using BUILD_PATCH variable
3) Open solution by MSVC and make sure that patched header file in used (in Solution tab and during build process.

Public activity

7 archived notes

Participants are labeled by their role within this record.

01Commenter 2
Branch [archived branch] has been created by Author.

[revision removed]


Detailed log of new commits:

Author: Author
Date: Thu Jan 28 14:49:00 2016 +0300

    Small correction of documentation about CMake configuration process

Author: Author
Date: Thu Jan 28 14:48:07 2016 +0300

    0027121: Configuration, CMake - build process does not use patched header files
    
    Corrected collecting of all headers to <binary dir>/inc folder
02Commenter 2
Branch [archived branch] has been updated forcibly by Author.

[revision removed]
03Commenter 3
Product branch CR27121 was created.

It contains the same changes as in occt branch CR27121.
04Commenter 4
OCCT branch CR27121 and PRODUCTS branch CR27121 were created.

Please, review.
05Commenter 2
Branch [archived branch] has been updated forcibly by Author.

[revision removed]
06Commenter 6
dear Commenter 1,
there is no any remark. please integrate

07Commenter 2
Branch [archived branch] has been deleted by Participant.

[revision removed]