[CMake] Querying CMake variables of external CMake projects

Saad Khattak saadrustam at gmail.com
Fri Jan 12 22:24:27 EST 2018


Hi,

Say I find LibA using find_package(LibA) and I now have access to LibA_DIR,
which is the build folder of LibA. Is there a way I can query additional
variables, such as LibA's source directory, install directory etc. i.e.
variables that are defined by CMake when LibA was being generated/built by
CMake?

Thanks,
Saad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20180113/0d4a84f9/attachment.html>


More information about the CMake mailing list