Skip to content

Commit

Permalink
Merge pull request #803 from leapmotion/fix-cmake-include
Browse files Browse the repository at this point in the history
Correct bad include specification
  • Loading branch information
Veronica Zheng committed Oct 27, 2015
2 parents a99e66b + a4682b7 commit dd476de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autowiring-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit dd476de

Please sign in to comment.