Skip to content

Commit

Permalink
[g2o] fix abs compiler path in binary (microsoft#42724)
Browse files Browse the repository at this point in the history
  • Loading branch information
Neumann-A authored Dec 16, 2024
1 parent 4474162 commit b322364
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
10 changes: 10 additions & 0 deletions ports/g2o/fix-absolute.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ diff --git a/CMakeLists.txt b/CMakeLists.txt
index c3b6ab5..f050970 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -485,7 +485,8 @@ set(G2O_HAVE_CHOLMOD ${CHOLMOD_FOUND})
set(G2O_HAVE_CSPARSE ${G2O_USE_CSPARSE})
set(G2O_SHARED_LIBS ${BUILD_SHARED_LIBS})
set(G2O_LGPL_SHARED_LIBS ${BUILD_LGPL_SHARED_LIBS})
-set(G2O_CXX_COMPILER "${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER}")
+cmake_path(GET CMAKE_CXX_COMPILER FILENAME cxx_compiler)
+set(G2O_CXX_COMPILER "${CMAKE_CXX_COMPILER_ID} ${cxx_compiler}")

# Generate cmake configuration scripts
set(G2O_GENERATED_DIR "${CMAKE_CURRENT_BINARY_DIR}/generated")
@@ -496,7 +496,6 @@ set(G2O_PROJECT_CONFIG "${G2O_GENERATED_DIR}/${PROJECT_NAME}Config.cmake")
set(G2O_TARGETS_EXPORT_NAME "${PROJECT_NAME}Targets")
set(G2O_CONFIG_INSTALL_DIR "lib/cmake/${PROJECT_NAME}")
Expand Down
1 change: 1 addition & 0 deletions ports/g2o/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "g2o",
"version-date": "2023-08-06",
"port-version": 1,
"description": "g2o: A General Framework for Graph Optimization",
"homepage": "https://openslam.org/g2o.html",
"dependencies": [
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2990,7 +2990,7 @@
},
"g2o": {
"baseline": "2023-08-06",
"port-version": 0
"port-version": 1
},
"g3log": {
"baseline": "2.4",
Expand Down
5 changes: 5 additions & 0 deletions versions/g-/g2o.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "6de83a9660c1f5b6e922a56140584c1dbdaa1643",
"version-date": "2023-08-06",
"port-version": 1
},
{
"git-tree": "be30b61ad0d13087804bc474abea6673ba269a20",
"version-date": "2023-08-06",
Expand Down

0 comments on commit b322364

Please sign in to comment.