Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
b3237ac3
Commit
b3237ac3
authored
Jul 13, 2012
by
Ignacio Casal Quinteiro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for the more standard LIB_INSTALL_DIR variable
parent
0848ec24
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
CMakeLists.txt
+9
-4
No files found.
CMakeLists.txt
View file @
b3237ac3
...
@@ -62,7 +62,7 @@ ENDIF()
...
@@ -62,7 +62,7 @@ ENDIF()
# Installation paths
# Installation paths
SET
(
INSTALL_BIN bin CACHE PATH
"Where to install binaries to."
)
SET
(
INSTALL_BIN bin CACHE PATH
"Where to install binaries to."
)
SET
(
INSTALL_LIB
lib CACHE PATH
"Where to install libraries to."
)
SET
(
LIB_INSTALL_DIR
lib CACHE PATH
"Where to install libraries to."
)
SET
(
INSTALL_INC include CACHE PATH
"Where to install headers to."
)
SET
(
INSTALL_INC include CACHE PATH
"Where to install headers to."
)
# Build options
# Build options
...
@@ -159,13 +159,18 @@ IF (MSVC)
...
@@ -159,13 +159,18 @@ IF (MSVC)
SET_SOURCE_FILES_PROPERTIES
(
src/win32/precompiled.c COMPILE_FLAGS
"/Ycprecompiled.h"
)
SET_SOURCE_FILES_PROPERTIES
(
src/win32/precompiled.c COMPILE_FLAGS
"/Ycprecompiled.h"
)
ENDIF
()
ENDIF
()
# Backward compatibility with INSTALL_LIB variable
if
(
INSTALL_LIB
)
set
(
LIB_INSTALL_DIR
"
${
INSTALL_LIB
}
"
)
ENDIF
()
# Install
# Install
INSTALL
(
TARGETS git2
INSTALL
(
TARGETS git2
RUNTIME DESTINATION
${
INSTALL_BIN
}
RUNTIME DESTINATION
${
INSTALL_BIN
}
LIBRARY DESTINATION
${
INSTALL_LIB
}
LIBRARY DESTINATION
${
LIB_INSTALL_DIR
}
ARCHIVE DESTINATION
${
INSTALL_LIB
}
ARCHIVE DESTINATION
${
LIB_INSTALL_DIR
}
)
)
INSTALL
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/libgit2.pc DESTINATION
${
INSTALL_LIB
}
/pkgconfig
)
INSTALL
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/libgit2.pc DESTINATION
${
LIB_INSTALL_DIR
}
/pkgconfig
)
INSTALL
(
DIRECTORY include/git2 DESTINATION
${
INSTALL_INC
}
)
INSTALL
(
DIRECTORY include/git2 DESTINATION
${
INSTALL_INC
}
)
INSTALL
(
FILES include/git2.h DESTINATION
${
INSTALL_INC
}
)
INSTALL
(
FILES include/git2.h DESTINATION
${
INSTALL_INC
}
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment