Hi Kor,
This is a silly bug on master. Sorry about that. Could you check that https://github.com/STEllAR-GROUP/hpx/pull/4504 fixes that for you? Note that we may still undeprecate the HPX_WITH_CXXAB options, I haven't yet decided if we'll keep CMAKE_CXX_STANDARD as the official way to set the standard. Just to clarify, did you get that error also just setting HPX_WITH_CXX17=ON? Mikael ________________________________ From: [email protected] <[email protected]> on behalf of Kor de Jong <[email protected]> Sent: Wednesday, April 8, 2020 2:03:21 PM To: [email protected] Subject: [hpx-users] Error specifying CXX standard when building project with HPX Hi list, In my project's CMake configuration I set CMAKE_CXX_STANDARD to 17. In my HPX's CMake configuration I set HPX_WITH_CXX17 to ON. This has been working fine (HPX 1.4.1). I would like to try the commit mentioned in this PR: https://github.com/STEllAR-GROUP/hpx/pull/4311, which has recently been rebased on the master branch. I now get a CMake project configuration error (RelWithDebInfo): You've set CMAKE_CXX_STANDARD manually, which is not recommended. If you really want to set CMAKE_CXX_STANDARD, set HPX_USE_CMAKE_CXX_STANDARD=ON. Setting HPX_USE_CMAKE_CXX_STANDARD=ON results in this error: Target "cmTC_a0740" requires the language dialect "CXXCMAKE_CXX_STANDARD" , but CMake does not know the compile flags to use to enable it. Not setting CMAKE_CXX_STANDARD in my project's CMake configuration results in std::filesystem and std::optional not being found anymore. My question is how to get my project and HPX building again. I want to use C++17, with gcc-7, on Linux. Thanks, Kor _______________________________________________ hpx-users mailing list [email protected] https://mail.cct.lsu.edu/mailman/listinfo/hpx-users
_______________________________________________ hpx-users mailing list [email protected] https://mail.cct.lsu.edu/mailman/listinfo/hpx-users
