summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2017-06-28 13:14:23 +0200
committerPatrick Steinhardt <ps@pks.im>2017-08-16 07:12:38 +0200
commitc3635130d8938ac9ce4625de9ff90a848b6064d5 (patch)
tree2910f1b97a1142ef24ee3d184bf42b75c1af8ed7
parent32a2e5001c41c56ba02bd03b8656033ec6af7ea0 (diff)
downloadlibgit2-c3635130d8938ac9ce4625de9ff90a848b6064d5.tar.gz
cmake: move definition of Win32 flags together
This makes splitting up the library build instructions later on more obvious and easier to achieve.
-rw-r--r--CMakeLists.txt7
1 files changed, 3 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c1b36a6d5..d9b6ff217 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -76,10 +76,6 @@ IF(MSVC)
# If you want to embed a copy of libssh2 into libgit2, pass a
# path to libssh2
OPTION( EMBED_SSH_PATH "Path to libssh2 to embed (Windows)" OFF )
-
- ADD_DEFINITIONS(-D_SCL_SECURE_NO_WARNINGS)
- ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE)
- ADD_DEFINITIONS(-D_CRT_NONSTDC_NO_DEPRECATE)
ENDIF()
@@ -402,6 +398,9 @@ ENDIF()
# Platform specific compilation flags
IF (MSVC)
+ ADD_DEFINITIONS(-D_SCL_SECURE_NO_WARNINGS)
+ ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE)
+ ADD_DEFINITIONS(-D_CRT_NONSTDC_NO_DEPRECATE)
STRING(REPLACE "/Zm1000" " " CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")