What's the best cmake command to find an installed cmake module? find_package() is used often in our CMakeLists.txt files, but I wonder if there isn't something better.
For example: The kdepimlibs package installs KDEPIMLib.cmake into $top/share/apps/cmake/modules Near the top of kdepim/CMakeLists.txt I have the line "find_package(KDEPIMLib REQUIRED)". If that file is not found, cmake prints the following and exits: CMake Error: KDEPIMLib_DIR is not set. It must be set to the directory containing\ KDEPIMLibConfig.cmake in order to use KDEPIMLib. What I'd rather have is a cmake command that looks in a path for a file, and if that file is not found a nice error message is printed (maybe something I can specify) and then, based on the REQUIRED option, aborts cmake. Does something like this already exist? -- Let's Keep the Political Talk Out of KDE PLEASE _______________________________________________ Kde-buildsystem mailing list Kde-buildsystem@kde.org https://mail.kde.org/mailman/listinfo/kde-buildsystem