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
be320340
Commit
be320340
authored
Jan 09, 2022
by
Miguel Arroz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introduced `LINK_WITH_STATIC_LIBRARIES` per PR comments.
parent
7c9f77b4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
README.md
+2
-0
cmake/DefaultCFlags.cmake
+1
-1
No files found.
README.md
View file @
be320340
...
...
@@ -301,6 +301,8 @@ compiler and linker. These flags are rarely used but can be useful for
-
`CMAKE_FIND_ROOT_PATH`
: Override the search path for libraries
-
`ZLIB_LIBRARY`
,
`OPENSSL_SSL_LIBRARY`
AND
`OPENSSL_CRYPTO_LIBRARY`
:
Tell CMake where to find those specific libraries
-
`LINK_WITH_STATIC_LIBRARIES`
: Link only with static versions of
system libraries
MacOS X
-------
...
...
cmake/DefaultCFlags.cmake
View file @
be320340
...
...
@@ -92,7 +92,7 @@ else()
set
(
CMAKE_C_ARCHIVE_FINISH
"<CMAKE_RANLIB> -D <TARGET>"
)
endif
()
if
(
NOT
APPLE AND NOT BUILD_SHARED_LIB
S
)
if
(
NOT
BUILD_SHARED_LIBS AND LINK_WITH_STATIC_LIBRARIE
S
)
set
(
CMAKE_FIND_LIBRARY_SUFFIXES
".a"
)
endif
()
...
...
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