mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-11 15:59:16 +08:00
41 lines
1.2 KiB
Diff
41 lines
1.2 KiB
Diff
diff --git a/include/sdf/config.hh.in b/include/sdf/config.hh.in
|
|
index d1b3db53..9a9ce91d 100644
|
|
--- a/include/sdf/config.hh.in
|
|
+++ b/include/sdf/config.hh.in
|
|
@@ -48,5 +48,3 @@
|
|
#cmakedefine SDFORMAT_DISABLE_CONSOLE_LOGFILE 1
|
|
|
|
-#define SDF_SHARE_PATH "${CMAKE_INSTALL_FULL_DATAROOTDIR}/"
|
|
-#define SDF_VERSION_PATH "${CMAKE_INSTALL_FULL_DATAROOTDIR}/sdformat${SDF_MAJOR_VERSION}/${SDF_PKG_VERSION}"
|
|
|
|
diff --git a/src/SDF.cc b/src/SDF.cc
|
|
index 07056d7..57e8a2c 100644
|
|
--- a/src/SDF.cc
|
|
+++ b/src/SDF.cc
|
|
@@ -108,24 +108,8 @@ std::string findFile(const std::string &_filename, bool _searchLocalPath,
|
|
}
|
|
}
|
|
|
|
- // Next check the install path.
|
|
- std::string path = sdf::filesystem::append(SDF_SHARE_PATH, filename);
|
|
- if (sdf::filesystem::exists(path))
|
|
- {
|
|
- return path;
|
|
- }
|
|
-
|
|
- // Next check the versioned install path.
|
|
- path = sdf::filesystem::append(SDF_SHARE_PATH,
|
|
- "sdformat" SDF_MAJOR_VERSION_STR,
|
|
- sdf::SDF::Version(), filename);
|
|
- if (sdf::filesystem::exists(path))
|
|
- {
|
|
- return path;
|
|
- }
|
|
-
|
|
// Finally check to see if the given file exists.
|
|
- path = filename;
|
|
+ std::string path = filename;
|
|
if (sdf::filesystem::exists(path))
|
|
{
|
|
return path;
|