Hello,
I am using cmake(I am a novice) for a big project, this contain multiple
independent projects(no use add_subdirectory), so take an example:
Project A depend of B, when  I run cmake for A this check for B with
find_package(), if this fail the user is notified and need install
B, I think that manage this automatically is desirable, I propose
ExternalProject_Add, so this download, configure, build and install the
dependence automatically but my problem is:
When I execute cmake for A this say that B not found, so find this
and install, but then the "first" make fail because the first time the
"imported targets"
are empty, so I need rerun cmake, this time find_package()
fill the "imported targets" and build ok.
How I can avoid this(execute cmake ; make ; cmake ; make).
Thanks a lot.

-- 

   [image: --]

ALvaro Denis Acosta
[image: http://]about.me/denisacostaq
   <http://about.me/denisacostaq?promo=email_sig>
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to