From 6b739d44a2db41921f57c2e79c1cadb34bbe75c4 Mon Sep 17 00:00:00 2001 From: Giovanni Simoni Date: Fri, 6 Dec 2024 10:43:05 +0100 Subject: [PATCH] cmake, add check on FUZZ_LDFLAGS --- fuzz/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fuzz/CMakeLists.txt b/fuzz/CMakeLists.txt index ca272bb9..ae575624 100644 --- a/fuzz/CMakeLists.txt +++ b/fuzz/CMakeLists.txt @@ -18,6 +18,10 @@ set(FUZZ_LINKER_LANGUAGE "C" CACHE STRING "Linker language for fuzz harnesses") mark_as_advanced(FUZZ_LINKER_LANGUAGE) enable_language(${FUZZ_LINKER_LANGUAGE}) +if(NOT DEFINED FUZZ_LDFLAGS) + message(FATAL_ERROR "Please define FUZZ_LDFLAGS") +endif() + # fuzz_cred add_executable(fuzz_cred fuzz_cred.c ${COMMON_SOURCES} ${COMPAT_SOURCES}) set_target_properties(fuzz_cred PROPERTIES