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() # ---------------------------------------------------------------------------------------