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 fee4021
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions cmake/HPX_SetupStdexec.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,13 @@
# 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
if(HPX_WITH_STDEXEC)
if(HPX_WITH_CXX_STANDARD GREATER_EQUAL 20
AND HPX_WITH_CXX20_STD_IDENTITY
AND NOT MSVC
)
elseif(HPX_WITH_STDEXEC)
hpx_error("HPX_WITH_STDEXEC Requires C++20 or later and std::identity.")
hpx_error("HPX_WITH_STDEXEC Requires C++20 or later and std::identity.")
endif()
endif()

if(STDEXEC_ROOT AND NOT Stdexec_ROOT)
Expand Down

0 comments on commit fee4021

Please sign in to comment.