diff --git a/cmake/modules/ThermoFunConfig.cmake.in b/cmake/modules/ThermoFunConfig.cmake.in index e54ce46..ba6afef 100644 --- a/cmake/modules/ThermoFunConfig.cmake.in +++ b/cmake/modules/ThermoFunConfig.cmake.in @@ -9,5 +9,9 @@ if(NOT TARGET ThermoFun::ThermoFun) include("@PACKAGE_THERMOFUN_INSTALL_CONFIGDIR@/ThermoFunTargets.cmake") endif() +# Find all dependencies below. +find_package(ChemicalFun REQUIRED) +find_package(spdlog CONFIG REQUIRED) + # Recommended check at the end of a cmake config file. check_required_components(ThermoFun) diff --git a/cmake/modules/ThermoFunFindDeps.cmake b/cmake/modules/ThermoFunFindDeps.cmake index 3a893dc..b541345 100644 --- a/cmake/modules/ThermoFunFindDeps.cmake +++ b/cmake/modules/ThermoFunFindDeps.cmake @@ -17,6 +17,8 @@ endif() find_package(ChemicalFun REQUIRED) if(NOT ChemicalFun_FOUND) message(FATAL_ERROR "ChemicalFun library not found") +else() + message(STATUS "Found ChemicalFun: ${ChemicalFun_DIR} (found version \"${ChemicalFun_VERSION}\")") endif() if(USE_SPDLOG_PRECOMPILED)