File: Check-std_execution.cmake

package info (click to toggle)
stellarium 24.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 911,396 kB
  • sloc: ansic: 317,377; cpp: 204,602; xml: 48,590; javascript: 26,348; python: 1,254; perl: 1,108; sh: 207; makefile: 190; 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()