Skip to content

Commit

Permalink
check for par_unseq instead of <execution>
Browse files Browse the repository at this point in the history
  • Loading branch information
jstkdng committed Jul 15, 2023
1 parent a0555ee commit 41c62b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ option(ENABLE_OPENGL "Enable canvas rendering with OpenGL." OFF)

include(FetchContent)
include(GNUInstallDirs)
include(CheckIncludeFileCXX)
include(CheckCXXSymbolExists)

find_package(PkgConfig REQUIRED)
find_package(Threads REQUIRED)
Expand All @@ -49,7 +49,7 @@ find_package(TBB REQUIRED)

# check if <execution> is available
set(CMAKE_REQUIRED_LIBRARIES TBB::tbb)
check_include_file_cxx(execution HAVE_STD_EXECUTION_H)
check_cxx_symbol_exists(std::execution::par_unseq execution HAVE_STD_EXECUTION_H)
if (HAVE_STD_EXECUTION_H)
target_compile_definitions(ueberzug PRIVATE HAVE_STD_EXECUTION_H)
endif()
Expand Down

0 comments on commit 41c62b5

Please sign in to comment.