cmake HAVE_STD_IS_TRIVIALLY_COPYABLE examples

Warzone2100/warzone2100 3rdparty/CMakeLists.txt :239

check_cxx_source_compiles("
		#include <type_traits>
		const bool val = std::is_trivially_copyable<bool>::value;
		int main()
		{
			return 0;
		}"
		HAVE_STD_IS_TRIVIALLY_COPYABLE
	)

o2e/OLLVM-9.0.1 cmake/config-ix.cmake :340

CHECK_CXX_SOURCE_COMPILES("
#include <type_traits>
struct T { int val; };
static_assert(std::is_trivially_copyable<T>::value, \"ok\");
int main() { return 0;}
" HAVE_STD_IS_TRIVIALLY_COPYABLE)

NVIDIA/MDL-SDK src/mdl/jit/llvm/dist/cmake/config-ix.cmake :355

CHECK_CXX_SOURCE_COMPILES("
#include <type_traits>
struct T { int val; };
static_assert(std::is_trivially_copyable<T>::value, \"ok\");
int main() { return 0;}
" HAVE_STD_IS_TRIVIALLY_COPYABLE)