diff --git a/CMakeLists.txt b/CMakeLists.txt index 7b445c5..a594b34 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,6 +23,7 @@ set(CMAKE_CXX_EXTENSIONS OFF) include(cmake/debug_flags.cmake) # All dependencies except test dependencies. +set(CMAKE_FIND_PACKAGE_PREFER_CONFIG TRUE) find_package(Boost 1.65.0 REQUIRED COMPONENTS locale program_options regex) find_package(Gettext REQUIRED) find_package(Filesystem REQUIRED COMPONENTS Final Experimental) @@ -31,7 +32,7 @@ find_package(fmt 4 REQUIRED CONFIG) find_package(termcolor CONFIG) if(NOT termcolor_FOUND) if(FALLBACK_BUNDLED) - message(VERBOSE "Using bundled version of Termcolor.") + message(STATUS "Using bundled version of Termcolor.") add_subdirectory(dist/termcolor EXCLUDE_FROM_ALL) else() message(FATAL_ERROR "Termcolor was not found.")