Skip to content

Commit

Permalink
Merge pull request #63 from allanleal/fix-cmake-config
Browse files Browse the repository at this point in the history
Improvements in `ThermoFunConfig.cmake.in`
  • Loading branch information
dimitrikulik authored Jun 8, 2023
2 parents c47e45c + fa2475f commit a9c8e37
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/modules/ThermoFunConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 2 additions & 0 deletions cmake/modules/ThermoFunFindDeps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a9c8e37

Please sign in to comment.