[CMake] Warning when find_package does not find package
Nils Gladitz
nilsgladitz at gmail.com
Fri May 9 06:25:04 EDT 2014
On 05/09/2014 12:05 PM, Christoph Grüninger wrote:
> But if A is not installed, find_package generates an annoying and
> disruptive warning message. I always check what went wrong to simply
> find out, that I have not provided the path to A, just as I wanted.
> I would prefer to get a single line stating "-- Could NOT find A"
I guess you could have that easily enough with something similar to:
find_package(A QUIET)
if(NOT A_FOUND)
message(STATUS "Could NOT find A")
endif()
Nils
More information about the CMake
mailing list