vcpkg/ports/osgearth/fix-osgearth-config.patch
Connor Broyles 5e77198e98
[osgearth] Fix errors that occur in the osgearth config file on some platforms (#26024)
* Fix target export in osgearth config

* Update port

* Update ports/osgearth/fix-osgearth-config.patch

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2022-08-04 15:48:49 -07:00

28 lines
775 B
Diff

diff --git a/osgEarthConfig.cmake.in b/osgEarthConfig.cmake.in
index 3f27dffe9..354e0f7dc 100644
--- a/osgEarthConfig.cmake.in
+++ b/osgEarthConfig.cmake.in
@@ -13,11 +13,11 @@ endif()
set(osgearth_DEFINITIONS ${${XPREFIX}_CFLAGS})
find_path(osgearth_INCLUDE_DIR
- NAMES OSGEARTH/RTREE.H
+ NAMES osgEarth/rtree.h
HINTS ${${XPREFIX}_INCLUDE_DIRS}
)
-set(OSGEARTH_NAMES osgearth)
+set(OSGEARTH_NAMES osgEarth)
find_library(osgearth_LIBRARY
NAMES ${OSGEARTH_NAMES}
@@ -38,6 +38,8 @@ find_package_handle_standard_args(osgearth DEFAULT_MSG
string (REPLACE ";" " " osgearth_LDFLAGS "${osgearth_LDFLAGS}")
+add_library(osgEarth UNKNOWN IMPORTED)
+
set_target_properties(osgearth
PROPERTIES
IMPORTED_LOCATION "${osgearth_LIBRARIES}"