From 105e74e46ff0a28519ea11b161c190575725fe82 Mon Sep 17 00:00:00 2001 From: Dmitry Arkhipov Date: Thu, 22 Jun 2023 08:34:58 +0300 Subject: [PATCH] fix wrong CMake command for MSVC --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5c4209bc..95ae6c77 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,7 +54,7 @@ endif() function(boost_json_setup_properties target) if(MSVC) - target_compile_features(${target} PRIVATE _SCL_SECURE_NO_WARNINGS) + target_compile_definitions(${target} PRIVATE _SCL_SECURE_NO_WARNINGS) endif() target_compile_features(${target} PUBLIC cxx_constexpr) target_compile_definitions(${target} PUBLIC BOOST_JSON_NO_LIB=1)