Skip to content

Commit 051917a

Browse files
authored
Merge pull request #310 from nim65s/topic/_snprintf
define HAVE_SNPRINTF for windows, fix #309
2 parents ee01951 + 6b82dbd commit 051917a

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)