Skip to content

Commit

Permalink
CMake: be more verbose when looking for Calamares
Browse files Browse the repository at this point in the history
  • Loading branch information
adriaandegroot committed Jan 15, 2024
1 parent 51e89e5 commit 18e6824
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ set( CMAKE_CXX_STANDARD_REQUIRED ON )
# directory (which doesn't have the rest of the config
# installed inside it).
set( CALAMARES_VERSION_REQUIRED 3.3.1 )
message(STATUS "Looking for Calamares system-wide")
find_package(Calamares ${CALAMARES_VERSION_REQUIRED} NO_CMAKE_PACKAGE_REGISTRY)
if (NOT TARGET Calamares::calamares OR NOT TARGET Calamares::calamaresui)
message(STATUS "Looking for Calamares in the package registry")
find_package(Calamares ${CALAMARES_VERSION_REQUIRED} REQUIRED)
endif()

Expand Down

0 comments on commit 18e6824

Please sign in to comment.