Hi, I've been trying to figure out the exact differences between the export() and install(export ...) functions and I have some questions still.
>From the documentation, EXPORT() makes available the build tree for a given >target and puts the path to the build tree in the ~/.cmake/packages/<project> >directory while INSTALL(EXPORT ...) makes the install tree available. What I don't understand is what happens with EXPORT() if you have multiple builds of the same project. For example, we often build (in two different directories) the same project with two compilers (Intel and GNU) and install them in two different locations. But the entries in the registry just show path names. How would find_package() work in that instance? When using INSTALL(EXPORT ...), I can get the information I need by INCLUDE'ing the file, but I cannot find that file without the user's input. Is there a way to put the path to the install tree in the registry? If so, how would find_package() behave with multiple installs? If anybody has any suggestions, I would appreciate it. Tim _______________________________________________ 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