boostorg / boostorg/compute

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

Open
#843 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.7k
Forks
340
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.