Skip to content

Commit

Permalink
Disable by default
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorostsa committed Aug 25, 2024
1 parent 87cd9a4 commit 32c2709
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions cmake/HPX_SetupStdexec.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

if(HPX_WITH_CXX_STANDARD GREATER_EQUAL 20
AND HPX_WITH_CXX20_STD_IDENTITY
AND NOT MSVC
)
set(HPX_WITH_STDEXEC
ON
CACHE BOOL "Enabled by default for C++20" FORCE
)
elseif(HPX_WITH_STDEXEC)
hpx_error("HPX_WITH_STDEXEC Requires C++20 or later and std::identity.")
if(HPX_WITH_STDEXEC)
if(HPX_WITH_CXX_STANDARD LESS 20)
hpx_error("HPX_WITH_STDEXEC Requires C++20 or later.")
endif()
if(NOT HPX_WITH_CXX20_STD_IDENTITY)
hpx_error("HPX_WITH_STDEXEC Requires std::identity.")
endif()
if(MSVC)
hpx_error("HPX_WITH_STDEXEC is not available on MSVC.")
endif()
endif()

if(STDEXEC_ROOT AND NOT Stdexec_ROOT)
Expand Down

0 comments on commit 32c2709

Please sign in to comment.