2
0
mirror of https://github.com/boostorg/json.git synced 2026-01-19 04:12:14 +00:00

fix wrong CMake command for MSVC

This commit is contained in:
Dmitry Arkhipov
2023-06-22 08:34:58 +03:00
parent 24cca5f47b
commit 105e74e46f

View File

@@ -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)