Yes, that's right. But... The number of libraries I need to find depends on the COMPONENTS that were specified by the user in his CMakeLists.txt file. So I cannot hard code these variables as arguments to find_package_handle_standard_args(). That's why I chose to collect them in XXX-LIBRARIES first and pass that variable.
So, I'm still stuck I'm afraid. Best regards, Marcel Loose. On Thu, 2009-05-14 at 02:29 -0700, Denis Scherbakov wrote: > > > That's my case as well. I need to find more than one > > library, and it's > > an all or nothing situation. I mean, if any of the > > libraries I'm > > searching for is missing, the package as such cannot be > > used. So, my > > original question still stands: > > > How should I pass a list of libraries to > > find_package_handle_standard_args(), where one or more of > > the elements > > of the list may be YYY-NOTFOUND? > > Marcel, > > If you have 3 variables for libraries and ALL of them > should be present, use > > FIND_PACKAGE_HANDLE_STANDARD_ARGS(... LIB1 LIB2 LIB3) > > If any of these variables have NOTFOUND suffix, the package will evaluate to > FALSE. > > Did I get you right? > > Denis > > > _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake