mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 05:28:34 +00:00
Use __stdcall by default on Windows
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
This commit is contained in:
parent
6e6ec54beb
commit
1b5078f6b1
@ -45,10 +45,14 @@ SET(INSTALL_INC include CACHE PATH "Where to install headers to.")
|
||||
OPTION (BUILD_SHARED_LIBS "Build Shared Library (OFF for Static)" ON)
|
||||
OPTION (BUILD_TESTS "Build Tests" ON)
|
||||
OPTION (THREADSAFE "Build libgit2 as threadsafe" OFF)
|
||||
OPTION (STDCALL "Buildl libgit2 with the __stdcall convention (Windows)" ON)
|
||||
|
||||
# Platform specific compilation flags
|
||||
IF (MSVC)
|
||||
SET(CMAKE_C_FLAGS "/W4 /WX /nologo /Zi")
|
||||
IF (STDCALL)
|
||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /Gz")
|
||||
ENDIF ()
|
||||
# TODO: bring back /RTC1 /RTCc
|
||||
SET(CMAKE_C_FLAGS_DEBUG "/Od /DEBUG /MTd")
|
||||
SET(CMAKE_C_FLAGS_RELEASE "/MT /O2")
|
||||
|
Loading…
Reference in New Issue
Block a user