From f001fea02e15bf460f0b488fb2462994c8dd5db6 Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 30 Nov 2024 18:31:02 +0200 Subject: [PATCH] Added compile definitions to header_only --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ce05ec2..e56c5699 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -249,6 +249,7 @@ else () endif() if(HAVE_FWRITE_UNLOCKED) target_compile_definitions(spdlog PRIVATE SPDLOG_FWRITE_UNLOCKED) + target_compile_definitions(spdlog_header_only INTERFACE SPDLOG_FWRITE_UNLOCKED) endif() # ---------------------------------------------------------------------------------------