Skip to content
Snippets Groups Projects
Verified Commit e0c22865 authored by Martin Stump's avatar Martin Stump
Browse files

Fix dep order in package config


Dependencies have to be found before including the project targets.

Signed-off-by: default avatarMartin Stump <martin.stump@mercedes-benz.com>
parent 23305d99
No related branches found
No related tags found
No related merge requests found
......@@ -11,11 +11,11 @@
@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
find_dependency(units)
if(NOT TARGET MantleAPI::MantleAPI AND NOT MantleAPI_BINARY_DIR)
set_and_check(MantleAPI_INCLUDE_DIR "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@")
mark_as_advanced(MantleAPI_INCLUDE_DIR)
include("${CMAKE_CURRENT_LIST_DIR}/MantleAPITargets.cmake")
endif()
include(CMakeFindDependencyMacro)
find_dependency(units)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment