diff options
| author | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-10-11 16:11:40 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-10-11 17:57:00 +0200 |
| commit | dcd62cb2e9fb9370f5eb17b9984f6dcf8d2598c2 (patch) | |
| tree | 0f8cfb39e9204f912d91c18efb5c85811d525896 /CMakeLists.txt | |
| parent | 8f9be3167719e86f9f4a087ea4edd4ac168853f0 (diff) | |
| download | libgit2-dcd62cb2e9fb9370f5eb17b9984f6dcf8d2598c2.tar.gz | |
CMake: Only add the STDCALL option when using MSVC
This option is only ever used with MSVC.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 795a5851..5c4de802 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,10 +47,14 @@ SET(INSTALL_INC include CACHE PATH "Where to install headers to.") # Build options OPTION (BUILD_SHARED_LIBS "Build Shared Library (OFF for Static)" ON) OPTION (THREADSAFE "Build libgit2 as threadsafe" OFF) -OPTION (STDCALL "Buildl libgit2 with the __stdcall convention (Windows)" ON) OPTION (BUILD_TESTS "Build Tests" ON) OPTION (BUILD_CLAY "Build Tests using the Clay suite" OFF) +# Not using __stdcall with the CRT causes problems +IF (MSVC) + OPTION (STDCALL "Buildl libgit2 with the __stdcall convention" ON) +ENDIF () + # Platform specific compilation flags IF (MSVC) SET(CMAKE_C_FLAGS "/W4 /nologo /Zi") |
