Skip to content

Commit

Permalink
[opencascade] Add samples feature (microsoft#31156)
Browse files Browse the repository at this point in the history
* [opencascade] Add samples feature

* format vcpkg.json

* update version
  • Loading branch information
JonLiu1993 authored Apr 28, 2023
1 parent 550b0c2 commit c1c3932
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ports/opencascade/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
"freeimage" USE_FREEIMAGE
"tbb" USE_TBB
"rapidjson" USE_RAPIDJSON
"samples" INSTALL_SAMPLES
)

# VTK option in opencascade not currently supported because only 6.1.0 is supported but vcpkg has >= 9.0
Expand All @@ -40,7 +41,6 @@ vcpkg_cmake_configure(
-DBUILD_SAMPLES_QT=OFF
-DBUILD_DOC_Overview=OFF
-DINSTALL_TEST_CASES=OFF
-DINSTALL_SAMPLES=OFF
)

vcpkg_cmake_install()
Expand Down
5 changes: 4 additions & 1 deletion ports/opencascade/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "opencascade",
"version": "7.6.2",
"port-version": 1,
"port-version": 2,
"description": "Open CASCADE Technology (OCCT) is an open-source software development platform for 3D CAD, CAM, CAE.",
"homepage": "https://github.com/Open-Cascade-SAS/OCCT",
"license": "LGPL-2.1",
Expand Down Expand Up @@ -31,6 +31,9 @@
"rapidjson"
]
},
"samples": {
"description": "Enable optional samples"
},
"tbb": {
"description": "Enable optional usage of tbb",
"dependencies": [
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5770,7 +5770,7 @@
},
"opencascade": {
"baseline": "7.6.2",
"port-version": 1
"port-version": 2
},
"opencc": {
"baseline": "1.1.6",
Expand Down
5 changes: 5 additions & 0 deletions versions/o-/opencascade.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "58939d51b0f33a014e48f1d7100ab8888d068c2d",
"version": "7.6.2",
"port-version": 2
},
{
"git-tree": "137097588b2328c3d7f66c4f0e46e6e4fe1559cf",
"version": "7.6.2",
Expand Down

0 comments on commit c1c3932

Please sign in to comment.