Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail in compiling test_program.cpp when using bjam to build this project #843

Open
yuxianch opened this issue Sep 30, 2019 · 0 comments
Open

Comments

@yuxianch
Copy link

Hi all,
I noticed that there are CMakeLists.txt and Jamfile.v2 under compute/test directory. When I tried to use bjam to build, I got errors when running tests.
For example, when compiling test_program.cpp, I saw errors like this:

test_program.cpp:136:27: error: unknown type name 'BOOST_COMPUTE_TEST_DATA_PATH'
    std::string file_path(BOOST_COMPUTE_TEST_DATA_PATH);
                          ^
test_program.cpp:136:26: warning: parentheses were disambiguated as a function
      declaration [-Wvexing-parse]
    std::string file_path(BOOST_COMPUTE_TEST_DATA_PATH);
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

However, "BOOST_COMPUTE_TEST_DATA_PATH" is defined in CMakeLists.txt. So, this test should be compiled successfully if I use cmake to build this project, but why does Jamfile.v2 exist in this project? Should Jamfile.v2 be updated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant