From 87765bace9be7d8105b3d148dd389a612299275b Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 3 Sep 2023 09:35:28 -0400 Subject: Move random number device check to runtime (fixes #1022) Having it at compile time breaks cross-compilation and isn't really right anyway. --- libqpdf/CMakeLists.txt | 2 -- 1 file changed, 2 deletions(-) (limited to 'libqpdf/CMakeLists.txt') diff --git a/libqpdf/CMakeLists.txt b/libqpdf/CMakeLists.txt index fbe85cf9..c6a122c6 100644 --- a/libqpdf/CMakeLists.txt +++ b/libqpdf/CMakeLists.txt @@ -320,8 +320,6 @@ check_symbol_exists(fseeko "stdio.h" HAVE_FSEEKO) check_symbol_exists(fseeko64 "stdio.h" HAVE_FSEEKO64) check_symbol_exists(localtime_r "time.h" HAVE_LOCALTIME_R) check_symbol_exists(random "stdlib.h" HAVE_RANDOM) -find_file(RANDOM_DEVICE - "urandom" "arandom" "arandom" PATHS "/dev" NO_DEFAULT_PATH) check_c_source_compiles( "#include -- cgit v1.2.3-54-g00ecf