I have my cmake build system kinda working but I had to put in what I think is a kludge to get it to work. In my top level CMakeLists.txt file I "include" another CMake file which calls another project via add_subdirectory(). With in that last call is a call to "FindBoost" which goes just fine. Now work our way all the way back to the top of the CMake file hierarchy and when I do "message(STATUS "Boost_INCLUDE_DIRS: ${Boost_INCLUDE_DIRS}") I get an empty statement.
    I had to put in another call to:
FIND_PACKAGE(Boost 1.36 COMPONENTS )
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
message (STATUS "Boost_INCLUDE_DIRS: ${Boost_INCLUDE_DIRS}")

and now I get the proper print out. So effectively I have called FindBoost at least twice. Would something like this be normal?

Thanks
_________________________________________________________
Mike Jackson                  [email protected]
BlueQuartz Software                    www.bluequartz.net
Principal Software Engineer                  Dayton, Ohio



_______________________________________________
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

Reply via email to