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:
- Do a search and replace at the portfile
or
- Move
/include/opencascade to /share/include/opencascade after build
Please advise
Host Environment
To Reproduce
./vcpkg install opencascade:x64-windowsLog / CMake buildtime variables
The header files are actually located in:
D:/vcpkg/installed/x64-windows/include/opencascadeContext
When including headers from opencascade they are not found.
After listing the CMake variables at buildtime I discovered that the
OpenCASCADE_INCLUDE_DIRpoints to the share folder.Source is in file
OpenCASCADEConfig.cmake:37set (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:
or
/include/opencascadeto/share/include/opencascadeafter buildPlease advise