Skip to content

Commit 6b82dbd

Browse files
committed
define HAVE_SNPRINTF for windows, fix #309
1 parent ee01951 commit 6b82dbd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ if(NOT WIN32)
233233
else()
234234
target_compile_options(${PROJECT_NAME}
235235
PRIVATE $<$<CXX_COMPILER_ID:MSVC>:-bigobj>)
236+
target_compile_definitions(${PROJECT_NAME} PUBLIC "HAVE_SNPRINTF")
236237
endif()
237238

238239
target_link_boost_python(${PROJECT_NAME} PUBLIC)

0 commit comments

Comments
 (0)