File: Check-std_execution.cmake

package info (click to toggle)
stellarium 25.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,307,224 kB
  • sloc: ansic: 317,377; cpp: 214,435; xml: 48,592; javascript: 26,073; python: 2,113; perl: 734; sh: 247; makefile: 192; pascal: 169
file content (13 lines) | stat: -rw-r--r-- 703 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
message(STATUS "Checking that std::execution::par is supported by the C++ library")
try_compile(STD_EXECUTION_KNOWN "${CMAKE_BINARY_DIR}" "${CMAKE_CURRENT_LIST_DIR}/check-std_execution.cpp")
if(STD_EXECUTION_KNOWN)
	message(STATUS "Checking that std::execution::par is supported by the C++ library - yes")
else()
	try_compile(STD_EXECUTION_KNOWN "${CMAKE_BINARY_DIR}" "${CMAKE_CURRENT_LIST_DIR}/check-std_execution.cpp" LINK_LIBRARIES tbb)
	if(STD_EXECUTION_KNOWN)
		message(STATUS "Checking that std::execution::par is supported by the C++ library - yes")
		set(STD_EXECUTION_LIBS tbb)
	else()
		message(STATUS "Checking that std::execution::par is supported by the C++ library - NO")
	endif()
endif()