On May 20, 2009, at 3:17 PM, Nick Edmonds wrote:

Hi All,

I've been hacking the CMake build system to build the tests/examples for libs/graph_parallel and in doing so found that the path to the tests seems to be incorrect. I borrowed large portions of CMakeLists.txt from Boost.MPI, which seems to have the same issue. The path to the tests is given as "${EXECUTABLE_OUTPUT_PATH}/$ {CMAKE_CFG_INTDIR}/tests/${PROJECT_NAME}/${testname}" in libs/mpi/ test/CMakeLists.txt. The way my build (of the trunk) is configured this turns out to be "/./tests/mpi/${testname}" which obviously doesn't point to the tests.

Either EXECUTABLE_OUTPUT_PATH and CMAKE_CFG_INTDIR need to be properly initialized, or the path needs to be changed to something like "${Boost_SOURCE_DIR}/bin/test/${PROJECT_NAME}/${testname}. Can anyone comment on what the correct approach would be (or point out if I did something dumb that caused EXECUTABLE_OUTPUT_PATH and CMAKE_CFG_INTDIR not to be properly set).

Thanks,
Nick


Are you doing an "in-source" build? If so you really need to be doing an "out-of-source" build which basically means you need to have a separate build directory. So something like this to get going:

cd Boost-SVN
mkdir Build
cd Build
cmake ../


_________________________________________________________
Mike Jackson                  mike.jack...@bluequartz.net
BlueQuartz Software                    www.bluequartz.net
Principal Software Engineer                  Dayton, Ohio
_______________________________________________
Boost-cmake mailing list
Boost-cmake@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-cmake

Reply via email to