From a451688f7f109bdba573876a91183cfc195be815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Andr=C3=A9?= Date: Wed, 12 Jul 2023 14:30:56 +0100 Subject: [PATCH] Update cpp_utilsConfig.cmake.in --- cmake/cpp_utilsConfig.cmake.in | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/cmake/cpp_utilsConfig.cmake.in b/cmake/cpp_utilsConfig.cmake.in index a568309..97e3b02 100644 --- a/cmake/cpp_utilsConfig.cmake.in +++ b/cmake/cpp_utilsConfig.cmake.in @@ -13,12 +13,8 @@ set(cpp_utils_LIBRARIES ${PROJECT_NAME}::${PROJECT_NAME}) # Required to avoid explicitly finding dependencies on 3rd party packages # @note cpp_utils defines an INTERFACE target, dependencies are only optionally required, even if compile flags are enabled include(CMakeFindDependencyMacro) -if (ENABLE_PLOT_UTILS) - find_dependency(matplotlib_cpp) -endif() -if (ENABLE_XML_UTILS) - find_dependency(tinyxml2) -endif() +find_dependency(matplotlib_cpp) +find_dependency(tinyxml2) # confirm that all required components have been found check_required_components(cpp_utils)