The definition would be in the build directory in 
"libs/config/include/hpx/config/defines.hpp" if it's defined. You might also 
want to grep your build directory for "#define HPX_HAVE_CXX17_FILESYSTEM" to 
see if it's defined elsewhere. Also check ${BUILD_DIR}/hpx/config for old stray 
files (wipe it if you're unsure, they'll be regenerated).


Side note: If you use HPX_WITH_CXXAB you shouldn't need to use 
HPX_USE_CMAKE_CXX_STANDARD (for compatibility with the old behaviour of the 
HPX_WITH_CXXAB variables). I recommend you stick with HPX_WITH_CXXAB for now as 
even if they get deprecated in the next release we're definitely not removing 
them outright.

________________________________
From: [email protected] <[email protected]> 
on behalf of Kor de Jong <[email protected]>
Sent: Wednesday, April 8, 2020 4:57:41 PM
To: [email protected]
Subject: Re: [hpx-users] Error specifying CXX standard when building project 
with HPX

On 4/8/20 4:15 PM, Hartmut Kaiser wrote:
> The only explanation I have is that your build still finds some outdated
> files (do you have HPX installed somewhere)? If
>
> HPX_FILESYSTEM_WITH_BOOST_FILESYSTEM_COMPATIBILITY=On
>
> (as you say) then there is no way the compiler would see the `#include
> <filesystem>` it's complaining about (see
> https://github.com/STEllAR-GROUP/hpx/blob/master/libs/filesystem/include/hpx
> /filesystem.hpp#L22).
>
> Could you find the (generated) file hpx/filesystem/config/defines.hpp - that
> should contain (or not contain) a
>
> #define HPX_FILESYSTEM_HAVE_BOOST_FILESYSTEM_COMPATIBILITY

Currently, I use these settings:

My project's CMake script:
set(CMAKE_CXX_STANDARD 17)

Toolchain file:
set(HPX_USE_CMAKE_CXX_STANDARD ON CACHE BOOL "")
set(HPX_WITH_CXX17 ON CACHE BOOL "")

The generated libs/filesystem/include/hpx/filesystem/config/defines.hpp
does not contain any define.

I can try to make a minimal failing example. Maybe the way I incorporate
HPX in my project (using CMake FetchContent) is not correct or tested.
But using HPX 1.4.1 works fine. I rebuild everything regularly on
different machines and for different build types.

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

Reply via email to