Skip to content

Commit

Permalink
Merge pull request #202 from openziti/fix-server-2016-crash
Browse files Browse the repository at this point in the history
Fix server 2016 crash
  • Loading branch information
dovholuknf authored Dec 10, 2020
2 parents 08f0480 + c4e8343 commit a4f4583
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ message("")
message("using ${CMAKE_GENERATOR}")

if (WIN32)
if(MINGW)
#on server 2016 msvcrt.dll does not process %z formatting
#that can lead to a crash if the string format is something like: %zd(%s)
add_compile_definitions(__USE_MINGW_ANSI_STDIO=1)
endif()
set(CMAKE_INSTALL_LIBDIR lib)
set(CMAKE_INSTALL_INCLUDEDIR include)
if(NOT CMAKE_INSTALL_PREFIX)
Expand Down

0 comments on commit a4f4583

Please sign in to comment.