mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-25 02:30:26 +08:00
a31a450d8e
* [backward-cpp] Fix exported include path * [ignition-tools] Fix dependencies
17 lines
617 B
Diff
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)
|