[osg] Fix debug targets for plugins in unofficial-osg (#33782)

* [osg] Fix debug plugin target locations

* [osg] Bump port version
This commit is contained in:
Connor Broyles 2023-09-18 12:55:59 -04:00 committed by GitHub
parent d48d056965
commit 01ed87c315
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 2 deletions

View File

@ -134,6 +134,13 @@ vcpkg_copy_pdbs()
configure_file("${CMAKE_CURRENT_LIST_DIR}/unofficial-osg-config.cmake" "${CURRENT_PACKAGES_DIR}/share/unofficial-osg/unofficial-osg-config.cmake" @ONLY)
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-osg)
# Add debug folder prefix for plugin targets. vcpkg_cmake_config_fixup only handles this for targets in bin/ and lib/.
set(osg_plugins_debug_targets "${CURRENT_PACKAGES_DIR}/share/unofficial-osg/osg-plugins-debug.cmake")
file(READ "${osg_plugins_debug_targets}" contents)
string(REPLACE "${CURRENT_INSTALLED_DIR}" "\${_IMPORT_PREFIX}" contents "${contents}")
string(REPLACE "\${_IMPORT_PREFIX}/plugins" "\${_IMPORT_PREFIX}/debug/plugins" contents "${contents}")
file(WRITE "${osg_plugins_debug_targets}" "${contents}")
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(APPEND "${CURRENT_PACKAGES_DIR}/include/osg/Config" "#ifndef OSG_LIBRARY_STATIC\n#define OSG_LIBRARY_STATIC 1\n#endif\n")
endif()

View File

@ -1,7 +1,7 @@
{
"name": "osg",
"version": "3.6.5",
"port-version": 20,
"port-version": 21,
"description": "The OpenSceneGraph is an open source high performance 3D graphics toolkit.",
"homepage": "https://www.openscenegraph.com/",
"license": null,

View File

@ -6206,7 +6206,7 @@
},
"osg": {
"baseline": "3.6.5",
"port-version": 20
"port-version": 21
},
"osg-qt": {
"baseline": "Qt5",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "6e9d4d04aae606c5ac02c497b17774d37e74de7a",
"version": "3.6.5",
"port-version": 21
},
{
"git-tree": "87727f247e97af37e53f77acadff05d6d06559d0",
"version": "3.6.5",