summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2016-03-18 06:37:04 -0700
committerEdward Thomson <ethomson@github.com>2016-03-18 06:37:04 -0700
commit3a43677ec67cb528b01138b320d4472dfcd04e2c (patch)
tree507e800dc4332e6fa96e09f6500ee21fcdba3c59 /CMakeLists.txt
parente18df18bea14e17f648209b733359564a5836d8a (diff)
parent059f33bf759b47a5e664bee24d2c7774cfaecbaf (diff)
downloadlibgit2-3a43677ec67cb528b01138b320d4472dfcd04e2c.tar.gz
Merge pull request #3660 from mstrap/mingw
MinGW builds should optionally create DLLs without "lib" prefix
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2cfa907f4..144e34857 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -608,6 +608,8 @@ IF (SONAME)
IF (LIBGIT2_FILENAME)
ADD_DEFINITIONS(-DLIBGIT2_FILENAME=\"${LIBGIT2_FILENAME}\")
SET_TARGET_PROPERTIES(git2 PROPERTIES OUTPUT_NAME ${LIBGIT2_FILENAME})
+ ELSEIF (DEFINED LIBGIT2_PREFIX)
+ SET_TARGET_PROPERTIES(git2 PROPERTIES PREFIX "${LIBGIT2_PREFIX}")
ENDIF()
ENDIF()
STRING(REPLACE ";" " " LIBGIT2_PC_LIBS "${LIBGIT2_PC_LIBS}")