Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5a6e45c

Browse files
committed
Revert "cmake: Update Windows resources to reflect the optional vendor string"
This reverts commit 095bfd7.
1 parent 6de9b2e commit 5a6e45c

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

CMakeLists.txt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -330,19 +330,8 @@ IF (SONAME)
330330
SET_TARGET_PROPERTIES(git2 PROPERTIES OUTPUT_NAME "git2-${SONAME_APPEND}")
331331
ENDIF()
332332
ENDIF()
333-
334333
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/libgit2.pc.in ${CMAKE_CURRENT_BINARY_DIR}/libgit2.pc @ONLY)
335334

336-
IF (NOT BUILD_SHARED_LIBS)
337-
SET(LIBGIT2_NAME_PREFIX "lib")
338-
ENDIF()
339-
340-
IF (SONAME_APPEND)
341-
SET(LIBGIT2_NAME_SUFFIX "-${SONAME_APPEND}")
342-
ENDIF()
343-
344-
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/src/win32/git2.rc.cmake ${WIN_RC} @ONLY)
345-
346335
IF (MSVC_IDE)
347336
# Precompiled headers
348337
SET_TARGET_PROPERTIES(git2 PROPERTIES COMPILE_FLAGS "/Yuprecompiled.h /FIprecompiled.h")

src/win32/git2.rc.cmake renamed to src/win32/git2.rc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
#include <winver.h>
22
#include "../../include/git2/version.h"
33

4-
#define LIBGIT2_FILENAME "@LIBGIT2_NAME_PREFIX@git2@[email protected]"
4+
#ifndef INCLUDE_LIB
5+
#define LIBGIT2_FILENAME "git2.dll"
6+
#else
7+
#define LIBGIT2_FILENAME "libgit2.dll"
8+
#endif
59

610
VS_VERSION_INFO VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
711
FILEVERSION LIBGIT2_VER_MAJOR,LIBGIT2_VER_MINOR,LIBGIT2_VER_REVISION,0

0 commit comments

Comments
 (0)