Title: Build: install OpenCASCADE headers into the IfcOpenShell install tree (#3164) by petruconduraru · Pull Request #8903 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Build: install OpenCASCADE headers into the IfcOpenShell install tree (#3164) by petruconduraru · Pull Request #8903 · IfcOpenShell/IfcOpenShell
X Title: Build: install OpenCASCADE headers into the IfcOpenShell install tree (#3164) by petruconduraru · Pull Request #8903 · IfcOpenShell/IfcOpenShell
Description: Addresses #3164. IfcOpenShell's own installed headers (e.g. the opencascade geometry kernel under src/ifcgeom/kernels/opencascade) include OCCT headers such as gp_GTrsf.hxx directly, so a C++ project consuming an IfcOpenShell install tree currently has to separately locate a matching OCCT install to compile. This adds an opt-out INSTALL_DEPENDENCY_HEADERS CMake option (default ON) that copies OpenCASCADE's resolved include directory into the IfcOpenShell install prefix under include/external/occt-VERSION, following the versioned dependency directory naming @aothms proposed in the issue thread (occt-x.y.z, similar to what the nix build script already produces under _build/.../install/occt-x.y.z). This is purely additive. It does not move, rename, or otherwise touch the existing dependency build/install directories used by the nix or Windows build scripts (_deps, _deps-vs2022-x64-installed, nix _build), so no existing build environment is disrupted. Boost stays excluded, per @aothms's note that Boost is the exception. Opening as a draft. I could not do a full local build with real OCCT to verify this end to end (our local toolchain is Boost-drift-blocked), so this needs @aothms's review of the OpenCASCADE_INCLUDE_DIR / OpenCASCADE_VERSION variable names against the actual vendored OCCT CMake config, plus CI's compile verification. What I did verify locally: a full CMake configure of the edited file completes without syntax errors, and an isolated reproduction of the new install() rule with dummy headers produces the exact expected layout (install/include/external/occt-7.8.1/*.hxx), with the option OFF producing no change from current behaviour. I looked at your original occt-x.y.z proposal, @aothms; the thread trails off with Saiel walking back his follow-up, so the Windows batch-script directory reorg was never actually confirmed and I can't test those scripts from my environment anyway. So I went for the smaller, testable version of the same idea. Happy to adjust the approach if you'd prefer the fuller reorg. Generated with the assistance of an AI coding tool.
Open Graph Description: Addresses #3164. IfcOpenShell's own installed headers (e.g. the opencascade geometry kernel under src/ifcgeom/kernels/opencascade) include OCCT headers such as gp_GTrsf.hxx directly, so a C++ p...
X Description: Addresses #3164. IfcOpenShell's own installed headers (e.g. the opencascade geometry kernel under src/ifcgeom/kernels/opencascade) include OCCT headers such as gp_GTrsf.hxx directly, so a C...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/pull/8903
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:99c9294d-088c-7962-4958-bde86800f1a6 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E8B6:1F7E5E:3C4020:4E29DB:6B05044C |
| html-safe-nonce | 49d3f2445f8365cb50377030d1891dc75694ca98275f405458dafaf0158867e7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOEI2OjFGN0U1RTozQzQwMjA6NEUyOURCOjZCMDUwNDRDIiwidmlzaXRvcl9pZCI6IjYwMjIwNTEyMDYwMzY1MjIwNjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 412ad2e32d02e7ff740509fa660132d92d3c41c492693af19c21c14b909272df |
| hovercard-subject-tag | pull_request:4122902399 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/IfcOpenShell/IfcOpenShell/pull/8903/files |
| twitter:image | https://avatars.githubusercontent.com/u/139251053?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/139251053?s=400&v=4 |
| og:image:alt | Addresses #3164. IfcOpenShell's own installed headers (e.g. the opencascade geometry kernel under src/ifcgeom/kernels/opencascade) include OCCT headers such as gp_GTrsf.hxx directly, so a C++ p... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git |
| octolytics-dimension-user_id | 13692563 |
| octolytics-dimension-user_login | IfcOpenShell |
| octolytics-dimension-repository_id | 40473201 |
| octolytics-dimension-repository_nwo | IfcOpenShell/IfcOpenShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40473201 |
| octolytics-dimension-repository_network_root_nwo | IfcOpenShell/IfcOpenShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width