From a4682b72782826c8bf61b1085da3e25b0a6c872a Mon Sep 17 00:00:00 2001 From: Jason Lokerson Date: Mon, 26 Oct 2015 22:55:20 -0700 Subject: [PATCH] Correct bad include specification This path needs to be given relative to the binary directory when not referencing an install path. --- autowiring-config.cmake.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autowiring-config.cmake.in b/autowiring-config.cmake.in index 0e0fdae4f..5163c481a 100644 --- a/autowiring-config.cmake.in +++ b/autowiring-config.cmake.in @@ -6,9 +6,10 @@ # Check if local build if ("@CMAKE_CURRENT_BINARY_DIR@" STREQUAL CMAKE_CURRENT_LIST_DIR) set(autowiring_INCLUDE_DIR "@PROJECT_SOURCE_DIR@") + include("@CMAKE_CURRENT_BINARY_DIR@/AutowiringTargets.cmake") else() set(autowiring_INCLUDE_DIR "${CMAKE_CURRENT_LIST_DIR}/include") + include("${CMAKE_CURRENT_LIST_DIR}/cmake/AutowiringTargets.cmake") endif() -include("${CMAKE_CURRENT_LIST_DIR}/cmake/AutowiringTargets.cmake") set(autowiring_FOUND TRUE)