How do you do step 3) -- build boost? Unless the build is done and installed and ready to find before the end of step 3, there is still nothing (yet) there for the find_package in step 4 to find...
David C. On Fri, Apr 24, 2015 at 9:36 AM, matzeNOTAVAILABLE . <matze...@gmail.com> wrote: > Hi, > i am struggling somewhat with find_package. I looked at the documentation > and googled quite a bit, but i am still stuck. I alos tried stackoverflow to > no avail. > > What i am trying to accomplish is the following: > 1) See if my custom boost installation exists (using find_package) (version > 1.57) > 2) If it does not -> build it > 3) Use find_package again to find the newly built boost libs. > > This works up until but not including step 3. > > Something that it might be complicating matters (i am not sure) is that i > have a system boost installation (1.54). > > 1) (... set boost_root ...) > 2) FIND_PACKAGE(Boost 1.57 COMPONENTS log thread filesystem system) > 3) (... build boost if it Boost_FOUND is 0) > 4) FIND_PACKAGE(Boost 1.57 REQUIRED COMPONENTS log thread filesystem system) > > The second call to find_package does not find the boost installation and > thus does not set include dirs etc... properly. > > I wonder why not? > > Any hints are greatly appreciated, > Matt > > > -- > > 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 -- 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