Skip to content

Commit 105e74e

Browse files
committed
fix wrong CMake command for MSVC
1 parent 24cca5f commit 105e74e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ endif()
5454

5555
function(boost_json_setup_properties target)
5656
if(MSVC)
57-
target_compile_features(${target} PRIVATE _SCL_SECURE_NO_WARNINGS)
57+
target_compile_definitions(${target} PRIVATE _SCL_SECURE_NO_WARNINGS)
5858
endif()
5959
target_compile_features(${target} PUBLIC cxx_constexpr)
6060
target_compile_definitions(${target} PUBLIC BOOST_JSON_NO_LIB=1)

0 commit comments

Comments
 (0)