Boost logo

Boost Interest :

Subject: Re: [Boost-cmake] Path to test binaries for Boost.MPI (and Boost.graph_parallel) seems to be incorrect
From: Michael Jackson (mike.jackson_at_[hidden])
Date: 2009-05-20 15:45:50

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.
> 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.jackson_at_[hidden]
BlueQuartz Software
Principal Software Engineer Dayton, Ohio

Boost-cmake list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at