vcpkg/ports/backward-cpp/include-dir.diff
Kai Pastor a31a450d8e
[vcpkg baseline][backward-cpp,ignition-tools] Fix include dir and dependencies (#30669)
* [backward-cpp] Fix exported include path

* [ignition-tools] Fix dependencies
2023-04-05 12:40:06 -07:00

17 lines
617 B
Diff

diff --git a/BackwardConfig.cmake b/BackwardConfig.cmake
index a982adc..0c549f3 100644
--- a/BackwardConfig.cmake
+++ b/BackwardConfig.cmake
@@ -198,6 +198,11 @@ if(WIN32)
endif()
set(BACKWARD_INCLUDE_DIR "${CMAKE_CURRENT_LIST_DIR}")
+if(NOT PROJECT_NAME STREQUAL "backward")
+ get_filename_component(BACKWARD_INCLUDE_DIR "${BACKWARD_INCLUDE_DIR}" DIRECTORY)
+ get_filename_component(BACKWARD_INCLUDE_DIR "${BACKWARD_INCLUDE_DIR}" DIRECTORY)
+ set(BACKWARD_INCLUDE_DIR "${BACKWARD_INCLUDE_DIR}/include")
+endif()
set(BACKWARD_HAS_EXTERNAL_LIBRARIES FALSE)
set(FIND_PACKAGE_REQUIRED_VARS BACKWARD_INCLUDE_DIR)