Skip to content

[opencascade] OpenCASCADE_INCLUDE_DIR at wrong location #14636

@sudo-liljoa

Description

@sudo-liljoa

Host Environment

  • OS: Windows
  • Compiler: Visual Studio 2019

To Reproduce
./vcpkg install opencascade:x64-windows

Log / CMake buildtime variables

-- OpenCASCADE_INCLUDE_DIR=D:/vcpkg/installed/x64-windows/share/include/opencascade
-- OpenCASCADE_INSTALL_PREFIX=D:/vcpkg/installed/x64-windows/share

The header files are actually located in:
D:/vcpkg/installed/x64-windows/include/opencascade

Context
When including headers from opencascade they are not found.
After listing the CMake variables at buildtime I discovered that the OpenCASCADE_INCLUDE_DIR points to the share folder.

Source is in file OpenCASCADEConfig.cmake:37
set (OpenCASCADE_INCLUDE_DIR "${OpenCASCADE_INSTALL_PREFIX}/include/opencascade")

Changing it to:
set (OpenCASCADE_INCLUDE_DIR "${OpenCASCADE_INSTALL_PREFIX}/../include/opencascade")
seems to do solve this.

My suggestions:

  1. Do a search and replace at the portfile
    or
  2. Move /include/opencascade to /share/include/opencascade after build

Please advise

Metadata

Metadata

Assignees

Labels

category:port-bugThe issue is with a library, which is something the port should already support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions