[osg-qt] Install to the correct location. (#21048)

This commit is contained in:
Billy O'Neal 2021-10-28 18:10:38 -07:00 committed by GitHub
parent 2ebab53086
commit 78c4f0f16a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 35 additions and 15 deletions

View File

@ -8,6 +8,7 @@ vcpkg_from_github(
OsgMacroUtils.patch OsgMacroUtils.patch
fix-static-install.patch fix-static-install.patch
CMakeLists.patch CMakeLists.patch
use-lib.patch
) )
if(VCPKG_TARGET_IS_OSX) if(VCPKG_TARGET_IS_OSX)
@ -21,19 +22,16 @@ else()
set(OPTIONS -DDYNAMIC_OPENSCENEGRAPH=OFF) set(OPTIONS -DDYNAMIC_OPENSCENEGRAPH=OFF)
endif() endif()
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA OPTIONS
OPTIONS ${OPTIONS} ${OPTIONS}
-DBUILD_OSG_EXAMPLES=OFF -DBUILD_OSG_EXAMPLES=OFF
-DOSG_BUILD_APPLICATION_BUNDLES=OFF -DOSG_BUILD_APPLICATION_BUNDLES=OFF
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_fixup_pkgconfig()
#Debug file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
# Handle License
file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)

View File

@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 66e989a..3569cec 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -467,7 +467,7 @@ ENDIF()
IF(UNIX AND NOT WIN32 AND NOT APPLE)
IF(CMAKE_SIZEOF_VOID_P MATCHES "8")
- SET(LIB_POSTFIX "64" CACHE STRING "suffix for 32/64 dir placement")
+ SET(LIB_POSTFIX "" CACHE STRING "suffix for 32/64 dir placement")
MARK_AS_ADVANCED(LIB_POSTFIX)
ENDIF()
ENDIF()

View File

@ -1,13 +1,17 @@
{ {
"name": "osg-qt", "name": "osg-qt",
"version-string": "Qt5", "version-string": "Qt5",
"port-version": 2, "port-version": 3,
"description": "osgQt - Qt project for making use of OpenSceneGraph(OSG)", "description": "osgQt - Qt project for making use of OpenSceneGraph(OSG)",
"dependencies": [ "dependencies": [
"osg", "osg",
{ {
"name": "qt5-base", "name": "qt5-base",
"default-features": false "default-features": false
},
{
"name": "vcpkg-cmake",
"host": true
} }
] ]
} }

View File

@ -5014,7 +5014,7 @@
}, },
"osg-qt": { "osg-qt": {
"baseline": "Qt5", "baseline": "Qt5",
"port-version": 2 "port-version": 3
}, },
"osgearth": { "osgearth": {
"baseline": "3.2", "baseline": "3.2",

View File

@ -1,5 +1,10 @@
{ {
"versions": [ "versions": [
{
"git-tree": "8e92c5f14fae6b6a69e0818bf1509e03a1389d3c",
"version-string": "Qt5",
"port-version": 3
},
{ {
"git-tree": "743cc988a45a861fc3de537f6e8720a38a4cf90f", "git-tree": "743cc988a45a861fc3de537f6e8720a38a4cf90f",
"version-string": "Qt5", "version-string": "Qt5",